@treasuredata/tdx 2026.3.33 → 2026.3.35
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.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +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/auth-login-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-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/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/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.d.ts.map +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/api.js.map +1 -1
- package/dist/sdk/cas/cas-api-client.d.ts.map +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-api-client.js.map +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.d.ts.map +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +1 -1
- package/dist/sdk/client/delivery-api-client.d.ts.map +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js.map +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/engage-api-client.js.map +1 -1
- package/dist/sdk/client/http-client.d.ts +7 -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.d.ts.map +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js.map +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.d.ts.map +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/td-api-client.js.map +1 -1
- package/dist/sdk/client/trino-api-client.d.ts.map +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js.map +1 -1
- package/dist/sdk/client/workflow-client.d.ts.map +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/client/workflow-client.js.map +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.d.ts +12 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +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/personalization.d.ts.map +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/personalization.js.map +1 -1
- package/dist/sdk/policy.d.ts.map +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/policy.js.map +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.d.ts.map +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/realtime.js.map +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.d.ts +1 -0
- package/dist/sdk/types/workspace.d.ts.map +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/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/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.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(_0x318002,_0x1f8e4d){const _0x50c02f=a156_0x5b95,_0x233064=_0x318002();while(!![]){try{const _0x271bca=parseInt(_0x50c02f(0x1f6))/0x1+-parseInt(_0x50c02f(0x1d8))/0x2+parseInt(_0x50c02f(0x1e8))/0x3*(parseInt(_0x50c02f(0x1fa))/0x4)+-parseInt(_0x50c02f(0x1f7))/0x5+-parseInt(_0x50c02f(0x1cc))/0x6*(-parseInt(_0x50c02f(0x1da))/0x7)+-parseInt(_0x50c02f(0x1d1))/0x8+parseInt(_0x50c02f(0x1d7))/0x9;if(_0x271bca===_0x1f8e4d)break;else _0x233064['push'](_0x233064['shift']());}catch(_0x3fdcb6){_0x233064['push'](_0x233064['shift']());}}}(a156_0x2727,0x5fddc));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';function a156_0x5b95(_0x1546ba,_0x479139){_0x1546ba=_0x1546ba-0x1c6;const _0x272730=a156_0x2727();let _0x5b95f8=_0x272730[_0x1546ba];return _0x5b95f8;}import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x3b62cf,_0x226b5e={},_0x544a13={}){const _0x538dd7=a156_0x5b95;if(_0x544a13[_0x538dd7(0x1fc)])return runSemanticChecks(_0x3b62cf,_0x226b5e);const _0x1759ae=SegmentDefSchema[_0x538dd7(0x1d4)](_0x3b62cf);if(_0x1759ae[_0x538dd7(0x1f4)])return runSemanticChecks(_0x1759ae['data'],_0x226b5e);return zodErrorsToValidationResult(_0x1759ae[_0x538dd7(0x1e0)],_0x226b5e);}export function validateRuleDef(_0x394356,_0x57f0d2,_0x3a8eec){const _0x2d7a99=a156_0x5b95;if(!_0x394356)return[];const _0x2d77e9=RuleDefSchema['safeParse'](_0x394356);if(_0x2d77e9[_0x2d7a99(0x1f4)])return checkRule(_0x2d77e9[_0x2d7a99(0x1c8)],_0x57f0d2,_0x3a8eec);const _0x256a13=flattenZodIssues(_0x2d77e9[_0x2d7a99(0x1e0)][_0x2d7a99(0x1d9)]);return _0x256a13[_0x2d7a99(0x1fb)](_0x38a7f8=>{const _0x22c7af=_0x2d7a99,_0x2376e4=formatZodPath(_0x38a7f8[_0x22c7af(0x1de)]),_0x5c4c10=_0x2376e4?_0x57f0d2+'.'+_0x2376e4:_0x57f0d2,_0x114a5d=mapZodIssueToCode(_0x38a7f8,_0x2376e4),_0x2f206a=getLocationFromPath(_0x3a8eec[_0x22c7af(0x1f3)],_0x3a8eec[_0x22c7af(0x201)],pathToArray(_0x5c4c10));return{'level':_0x22c7af(0x1e0),'path':_0x5c4c10,'code':_0x114a5d,'message':_0x38a7f8['message'],..._0x2f206a&&{'location':_0x2f206a}};});}function zodErrorsToValidationResult(_0x5e524e,_0x4de4d7){const _0x3e7af1=a156_0x5b95,_0x55e3af=flattenZodIssues(_0x5e524e[_0x3e7af1(0x1d9)]),_0x4fc4cc=_0x55e3af[_0x3e7af1(0x1fb)](_0x5d0d38=>{const _0x370752=_0x3e7af1,_0x20253b=formatZodPath(_0x5d0d38[_0x370752(0x1de)]),_0x20563e=mapZodIssueToCode(_0x5d0d38,_0x20253b),_0x142863=getLocationFromPath(_0x4de4d7[_0x370752(0x1f3)],_0x4de4d7['source'],_0x5d0d38['path'][_0x370752(0x1fb)](_0x2c29de=>typeof _0x2c29de==='symbol'?String(_0x2c29de):_0x2c29de));return{'level':_0x370752(0x1e0),'path':_0x20253b,'code':_0x20563e,'message':_0x5d0d38[_0x370752(0x208)],..._0x142863&&{'location':_0x142863}};});return{'valid':![],'errors':_0x4fc4cc,'warnings':[]};}function mapZodIssueToCode(_0x28762d,_0x22689d){const _0x3d9217=a156_0x5b95,_0x15b416=_0x28762d[_0x3d9217(0x203)]===_0x3d9217(0x1ea)?_0x28762d['params']:undefined;if(_0x22689d===_0x3d9217(0x1e5))return _0x3d9217(0x20a);if(_0x22689d==='rule.type'||_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1e6))){if(_0x28762d[_0x3d9217(0x203)]===_0x3d9217(0x1cf)){if(_0x22689d==='rule.type'||_0x22689d[_0x3d9217(0x1dc)](/\.conditions\[\d+\]\.type$/))return _0x3d9217(0x1f2);}}if(_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1f8)))return _0x3d9217(0x1c7);if(_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1e4)))return _0x3d9217(0x1cd);if(_0x15b416?.['validationCode']===_0x3d9217(0x1fd))return _0x3d9217(0x1fd);if(_0x15b416?.['validationCode']===_0x3d9217(0x20d))return _0x3d9217(0x20d);if(_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1db))||_0x22689d==='conditions')return'MISSING_CONDITIONS';if(_0x22689d[_0x3d9217(0x200)]('arrayMatching'))return _0x3d9217(0x20b);if(_0x22689d[_0x3d9217(0x206)]('.segment'))return _0x3d9217(0x1f0);return'SEGMENT_SCHEMA_ERROR';}function a156_0x2727(){const _0x4ba549=['\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','3418584wzIInj','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','Behavior','safeParse','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','6496704VhuhUM','1548702icXcRU','issues','14bbhsDX','.conditions','match','EMPTY_ATTRIBUTE','path','filter','error','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','.conditions[','length','.operator.value','name','.type','Attribute\x20\x27','3ynuhIs','\x27\x20with\x20attribute\x20\x27','custom','BEHAVIOR_SOURCE_MISSING_FILTER','rule','.attribute','Behavior\x20source\x20\x27','warning','MISSING_SEGMENT_REFERENCE','.source','INVALID_RULE_TYPE','document','success','aggregation','597037JAKpsY','2033315qQuRoO','.operator.type','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','183232KcCZML','map','skipSchema','MISSING_BETWEEN_BOUNDS','Attribute\x20name\x20cannot\x20be\x20empty','EMPTY_CONDITIONS','includes','source','NESTED_CONDITION_GROUP','code','conditions','type','endsWith','level','message','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','MISSING_NAME','INVALID_ARRAY_MATCHING','attribute','MISSING_TIME_UNIT','Value','INVALID_OPERATOR_TYPE','data','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','push','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','1908912FalNit','MISSING_OPERATOR_VALUE','.filter','invalid_value'];a156_0x2727=function(){return _0x4ba549;};return a156_0x2727();}function runSemanticChecks(_0x1c6057,_0x1d220f){const _0x1e3722=a156_0x5b95,_0x425a52=[];_0x1c6057['rule']&&_0x425a52[_0x1e3722(0x1ca)](...checkRule(_0x1c6057[_0x1e3722(0x1ec)],'rule',_0x1d220f));const _0x4ec6cf=_0x425a52[_0x1e3722(0x1df)](_0x3000a9=>_0x3000a9[_0x1e3722(0x207)]===_0x1e3722(0x1e0)),_0x8bfbb4=_0x425a52[_0x1e3722(0x1df)](_0x3a4a77=>_0x3a4a77[_0x1e3722(0x207)]===_0x1e3722(0x1ef));return{'valid':_0x4ec6cf[_0x1e3722(0x1e3)]===0x0,'errors':_0x4ec6cf,'warnings':_0x8bfbb4};}function checkRule(_0x359a39,_0x265fad,_0xe78cde){const _0x3c78f0=a156_0x5b95,_0x136ed1=[];if(_0x359a39[_0x3c78f0(0x204)]['length']===0x0)return _0x136ed1[_0x3c78f0(0x1ca)]({'level':_0x3c78f0(0x1e0),'path':_0x265fad+_0x3c78f0(0x1db),'code':_0x3c78f0(0x1ff),'message':_0x3c78f0(0x1d5),'location':getLocationFromPath(_0xe78cde[_0x3c78f0(0x1f3)],_0xe78cde[_0x3c78f0(0x201)],pathToArray(_0x265fad+_0x3c78f0(0x1db)))}),_0x136ed1;return _0x136ed1[_0x3c78f0(0x1ca)](...checkConditions(_0x359a39[_0x3c78f0(0x204)],_0x265fad,_0xe78cde)),_0x136ed1;}function checkConditions(_0x5c897d,_0x87a548,_0x32b194){const _0x15d4e0=a156_0x5b95,_0x33ac58=[];for(let _0x502ce0=0x0;_0x502ce0<_0x5c897d['length'];_0x502ce0++){const _0x29a9ee=_0x5c897d[_0x502ce0],_0x48df05=_0x87a548+_0x15d4e0(0x1e2)+_0x502ce0+']';_0x33ac58['push'](...checkCondition(_0x29a9ee,_0x48df05,_0x32b194));}return _0x33ac58;}function checkCondition(_0x2a0a10,_0x4962b0,_0x5efbf4){const _0x426f1e=a156_0x5b95,_0x4f13b1=[];if(_0x2a0a10[_0x426f1e(0x205)]==='And'||_0x2a0a10[_0x426f1e(0x205)]==='Or')return _0x2a0a10['conditions'][_0x426f1e(0x1e3)]===0x0?_0x4f13b1[_0x426f1e(0x1ca)]({'level':_0x426f1e(0x1e0),'path':_0x4962b0+_0x426f1e(0x1db),'code':_0x426f1e(0x1ff),'message':_0x2a0a10[_0x426f1e(0x205)]+'\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','location':getLocationFromPath(_0x5efbf4[_0x426f1e(0x1f3)],_0x5efbf4[_0x426f1e(0x201)],pathToArray(_0x4962b0+'.conditions'))}):(_0x4f13b1['push']({'level':_0x426f1e(0x1ef),'path':_0x4962b0,'code':_0x426f1e(0x202),'message':_0x2a0a10[_0x426f1e(0x205)]+_0x426f1e(0x1d2)+_0x426f1e(0x1f9)+_0x426f1e(0x1d6),'location':getLocationFromPath(_0x5efbf4['document'],_0x5efbf4[_0x426f1e(0x201)],pathToArray(_0x4962b0))}),_0x4f13b1[_0x426f1e(0x1ca)](...checkConditions(_0x2a0a10[_0x426f1e(0x204)],_0x4962b0,_0x5efbf4))),_0x4f13b1;if(_0x2a0a10['type']===_0x426f1e(0x1c6)||_0x2a0a10[_0x426f1e(0x205)]===_0x426f1e(0x1d3)){const _0x4f2324=_0x2a0a10,_0x28b880=_0x4f2324['source'],_0x189966=_0x4f2324[_0x426f1e(0x1f5)],_0x10875c=_0x28b880||_0x189966;(!_0x4f2324[_0x426f1e(0x20c)]||_0x4f2324[_0x426f1e(0x20c)]==='')&&(!_0x10875c&&_0x4f13b1[_0x426f1e(0x1ca)]({'level':_0x426f1e(0x1e0),'path':_0x4962b0+'.attribute','code':_0x426f1e(0x1dd),'message':_0x426f1e(0x1fe),'location':getLocationFromPath(_0x5efbf4[_0x426f1e(0x1f3)],_0x5efbf4['source'],pathToArray(_0x4962b0+'.attribute'))}));_0x4f2324[_0x426f1e(0x1df)]&&_0x4f13b1[_0x426f1e(0x1ca)](...checkRule(_0x4f2324[_0x426f1e(0x1df)],_0x4962b0+_0x426f1e(0x1ce),_0x5efbf4));if(_0x4f2324[_0x426f1e(0x201)]){const _0x3e17d7=_0x4f2324[_0x426f1e(0x20c)]&&_0x4f2324[_0x426f1e(0x20c)]!=='';_0x3e17d7&&!_0x4f2324[_0x426f1e(0x1df)]&&_0x4f13b1['push']({'level':_0x426f1e(0x1e0),'path':_0x4962b0+_0x426f1e(0x1f1),'code':_0x426f1e(0x1eb),'message':_0x426f1e(0x1ee)+_0x4f2324[_0x426f1e(0x201)]+_0x426f1e(0x1e9)+_0x4f2324[_0x426f1e(0x20c)]+'\x27\x20'+_0x426f1e(0x1cb)+'the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20'+_0x426f1e(0x1e1),'location':getLocationFromPath(_0x5efbf4['document'],_0x5efbf4[_0x426f1e(0x201)],pathToArray(_0x4962b0+_0x426f1e(0x1f1)))}),_0x3e17d7&&_0x4f2324[_0x426f1e(0x1df)]&&_0x4f13b1[_0x426f1e(0x1ca)]({'level':_0x426f1e(0x1ef),'path':_0x4962b0+_0x426f1e(0x1ed),'code':_0x426f1e(0x1c9),'message':_0x426f1e(0x1e7)+_0x4f2324[_0x426f1e(0x20c)]+_0x426f1e(0x1d0)+_0x426f1e(0x209),'location':getLocationFromPath(_0x5efbf4[_0x426f1e(0x1f3)],_0x5efbf4['source'],pathToArray(_0x4962b0+'.attribute'))});}}return _0x4f13b1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa60458,_0x22878d){const _0x5c0f1e=a157_0xf505,_0x459b9e=_0xa60458();while(!![]){try{const _0x4bb31e=parseInt(_0x5c0f1e(0xfc))/0x1+-parseInt(_0x5c0f1e(0xeb))/0x2*(parseInt(_0x5c0f1e(0xea))/0x3)+parseInt(_0x5c0f1e(0xf1))/0x4+-parseInt(_0x5c0f1e(0xd4))/0x5+-parseInt(_0x5c0f1e(0xd3))/0x6+-parseInt(_0x5c0f1e(0xde))/0x7+parseInt(_0x5c0f1e(0xe6))/0x8;if(_0x4bb31e===_0x22878d)break;else _0x459b9e['push'](_0x459b9e['shift']());}catch(_0x14ff44){_0x459b9e['push'](_0x459b9e['shift']());}}}(a157_0x1ecd,0x5ba46));function a157_0xf505(_0x50175e,_0xb6a86a){_0x50175e=_0x50175e-0xcf;const _0x1ecdd2=a157_0x1ecd();let _0xf5054d=_0x1ecdd2[_0x50175e];return _0xf5054d;}import a157_0x1c4c50 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x51bd99){const _0x135263=a157_0xf505;return _0x51bd99['type']!==_0x135263(0xe2);}export function isScopedResolution(_0x2ba0a6){const _0x2765e9=a157_0xf505;return _0x2ba0a6[_0x2765e9(0xe9)]===_0x2765e9(0xd6)||_0x2ba0a6['type']===_0x2765e9(0x100)||_0x2ba0a6[_0x2765e9(0xe9)]===_0x2765e9(0xe1);}export function getScopedDetails(_0x4726c0){const _0x26a69f=a157_0xf505;if(isScopedResolution(_0x4726c0))return{'isScoped':_0x4726c0['isScoped'],'scopedFolderPath':_0x4726c0[_0x26a69f(0xd8)]};return undefined;}async function findTdxConfigAsync(_0x1a332f,_0x94be2){const _0x36ea3d=a157_0xf505;let _0x4bf412=a157_0x1c4c50[_0x36ea3d(0xf5)](_0x1a332f);const _0x4f1af6=a157_0x1c4c50[_0x36ea3d(0xfd)](_0x4bf412)[_0x36ea3d(0xf9)];while(_0x4bf412!==_0x4f1af6){const _0x27393e=a157_0x1c4c50[_0x36ea3d(0xe8)](_0x4bf412,'tdx.json');if(await _0x94be2[_0x36ea3d(0xd7)](_0x27393e))try{const _0x419da2=await _0x94be2[_0x36ea3d(0x101)](_0x27393e),_0x32df58=JSON[_0x36ea3d(0xfd)](_0x419da2);if(_0x32df58[_0x36ea3d(0xdb)]&&typeof _0x32df58[_0x36ea3d(0xdb)]===_0x36ea3d(0xfb))return{'configPath':_0x27393e,'configDir':_0x4bf412,'parentSegment':_0x32df58[_0x36ea3d(0xdb)]};}catch{}_0x4bf412=a157_0x1c4c50[_0x36ea3d(0xf0)](_0x4bf412);}return null;}function calculateScopedPath(_0xec3399,_0x55c28d){const _0x357be7=a157_0xf505,_0x526117=a157_0x1c4c50[_0x357be7(0xe0)](_0x55c28d,_0xec3399),_0x5cf3c4=_0x526117!==''&&_0x526117!=='.'&&!_0x526117[_0x357be7(0xda)]('..');return{'isScoped':_0x5cf3c4,'scopedFolderPath':_0x5cf3c4?_0x526117[_0x357be7(0xee)](/\\/g,'/'):''};}export async function resolveTarget(_0x312310){const _0x1b6c80=a157_0xf505,{arg:_0x34bacb,contextParent:_0x5edf60,cwd:cwd=process[_0x1b6c80(0xf4)](),fs:fs=nodeFileSystem}=_0x312310;if(_0x34bacb&&isYamlFilePath(_0x34bacb))try{const _0x5cf5f1=await resolveYamlFilePath(_0x34bacb,fs),_0x294025=a157_0x1c4c50[_0x1b6c80(0xf5)](_0x34bacb),_0x2b7266=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x294025),_0x28a1eb=await findTdxConfigAsync(_0x2b7266,fs);if(!_0x28a1eb){if(_0x5edf60){const _0x2a0ac4=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x294025);return{'type':_0x1b6c80(0x100),'parentName':_0x5edf60,'targetDir':_0x2a0ac4,'configRoot':_0x2a0ac4,'filePath':_0x294025,'resourceName':_0x5cf5f1['segmentName'],'folderPath':_0x5cf5f1['folderPath'],'resourceType':_0x5cf5f1[_0x1b6c80(0x104)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1b6c80(0xe2),'errorCode':'no_config','message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}const _0x3ff19d=calculateScopedPath(_0x2b7266,_0x28a1eb[_0x1b6c80(0xed)]);return{'type':_0x1b6c80(0x100),'parentName':_0x28a1eb[_0x1b6c80(0xf6)],'targetDir':_0x28a1eb[_0x1b6c80(0xed)],'configRoot':_0x28a1eb[_0x1b6c80(0xed)],'filePath':_0x294025,'resourceName':_0x5cf5f1[_0x1b6c80(0xec)],'folderPath':_0x5cf5f1[_0x1b6c80(0xd5)],'resourceType':_0x5cf5f1[_0x1b6c80(0x104)],'isScoped':_0x3ff19d[_0x1b6c80(0xd9)],'scopedFolderPath':_0x3ff19d['scopedFolderPath']};}catch(_0x438278){const _0x28b6cc=_0x438278 instanceof Error?_0x438278['message']:String(_0x438278);if(_0x28b6cc[_0x1b6c80(0x103)]('File\x20not\x20found'))return{'type':_0x1b6c80(0xe2),'errorCode':'file_not_found','message':_0x1b6c80(0xfe)+_0x34bacb,'arg':_0x34bacb};if(_0x28b6cc[_0x1b6c80(0x103)]('No\x20tdx.json\x20found')){if(_0x5edf60){const _0x41be55=a157_0x1c4c50['resolve'](_0x34bacb);if(await fs[_0x1b6c80(0xd7)](_0x41be55)){const _0x2804e7=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x41be55),_0x57e57a=await fs[_0x1b6c80(0x101)](_0x41be55),_0x25a012=_0x57e57a[_0x1b6c80(0xf7)](/^name:\s*["']?([^"'\n]+)["']?/m),_0xb671fa=_0x57e57a[_0x1b6c80(0xf7)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x3fc615=_0x25a012?_0x25a012[0x1][_0x1b6c80(0x102)]():a157_0x1c4c50['basename'](_0x34bacb,a157_0x1c4c50[_0x1b6c80(0xe4)](_0x34bacb)),_0x3447ae=_0xb671fa&&_0xb671fa[0x1][_0x1b6c80(0x102)]()==='journey'?_0x1b6c80(0xf8):_0x1b6c80(0xdc);return{'type':_0x1b6c80(0x100),'parentName':_0x5edf60,'targetDir':_0x2804e7,'configRoot':_0x2804e7,'filePath':_0x41be55,'resourceName':_0x3fc615,'folderPath':'','resourceType':_0x3447ae,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xf3),'message':_0x1b6c80(0xf2)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xd1),'message':_0x28b6cc,'arg':_0x34bacb};}if(_0x34bacb){const _0x235f6c=a157_0x1c4c50[_0x1b6c80(0xf5)](cwd,_0x34bacb);let _0x511ba3=null;try{_0x511ba3=await fs[_0x1b6c80(0xe5)](_0x235f6c);}catch{}if(_0x511ba3?.[_0x1b6c80(0xfa)]()){const _0x5f25a0=await findTdxConfigAsync(_0x235f6c,fs);if(_0x5f25a0){const _0x591da6=calculateScopedPath(_0x235f6c,_0x5f25a0['configDir']);return{'type':'directory','parentName':_0x5f25a0[_0x1b6c80(0xf6)],'targetDir':_0x235f6c,'configRoot':_0x5f25a0['configDir'],'isScoped':_0x591da6[_0x1b6c80(0xd9)],'scopedFolderPath':_0x591da6[_0x1b6c80(0xd8)]};}if(_0x5edf60)return{'type':_0x1b6c80(0xd6),'parentName':_0x5edf60,'targetDir':_0x235f6c,'configRoot':_0x235f6c,'isScoped':![],'scopedFolderPath':''};return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xf3),'message':_0x1b6c80(0xcf)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}if(_0x511ba3?.[_0x1b6c80(0xff)]())return{'type':'error','errorCode':'invalid_yaml','message':_0x1b6c80(0xd2)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xdf)};const _0x2ea51c=sanitizeFileName(_0x34bacb),_0x4b62e4=getSegmentRootDir(_0x2ea51c,cwd);return{'type':_0x1b6c80(0xd0),'parentName':_0x34bacb,'targetDir':_0x4b62e4,'configRoot':_0x4b62e4};}const _0x3e793c=await findTdxConfigAsync(cwd,fs);if(_0x3e793c){const _0x1a6f65=calculateScopedPath(cwd,_0x3e793c[_0x1b6c80(0xed)]);return{'type':_0x1b6c80(0xe1),'parentName':_0x3e793c[_0x1b6c80(0xf6)],'targetDir':cwd,'configRoot':_0x3e793c[_0x1b6c80(0xed)],'isScoped':_0x1a6f65['isScoped'],'scopedFolderPath':_0x1a6f65['scopedFolderPath']};}if(_0x5edf60){const _0x51e939=sanitizeFileName(_0x5edf60),_0x4c4f8e=getSegmentRootDir(_0x51e939,cwd);return{'type':'context','parentName':_0x5edf60,'targetDir':_0x4c4f8e,'configRoot':_0x4c4f8e,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xe3),'message':_0x1b6c80(0xef),'helpText':_0x1b6c80(0xdd)};}function a157_0x1ecd(){const _0x528780=['no_config','cwd','resolve','parentSegment','match','journey','root','isDirectory','string','25966zOIYwA','parse','File\x20not\x20found:\x20','isFile','file','readFile','trim','includes','resourceType','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','parent_name','invalid_yaml','Not\x20a\x20YAML\x20file:\x20','1054998qBbgce','2126570TmMQtk','folderPath','directory','exists','scopedFolderPath','isScoped','startsWith','parent_segment','segment','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','2064041PKEhCz','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','relative','context','error','no_parent','extname','stat','9478352gXfiTh','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','join','type','3qJRiUt','870908ySYjkn','segmentName','configDir','replace','Parent\x20segment\x20not\x20specified','dirname','1984280AcKRTx','No\x20tdx.json\x20found\x20for\x20file:\x20'];a157_0x1ecd=function(){return _0x528780;};return a157_0x1ecd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x4cec47=a158_0x2714;function a158_0x2714(_0x4c8cc6,_0x3a521e){_0x4c8cc6=_0x4c8cc6-0x1aa;const _0x2beb95=a158_0x2beb();let _0x2714d1=_0x2beb95[_0x4c8cc6];return _0x2714d1;}(function(_0x497755,_0x10895b){const _0x1b381c=a158_0x2714,_0x2a3503=_0x497755();while(!![]){try{const _0x4bdc95=parseInt(_0x1b381c(0x1b4))/0x1*(-parseInt(_0x1b381c(0x1ae))/0x2)+-parseInt(_0x1b381c(0x1b6))/0x3+-parseInt(_0x1b381c(0x1b0))/0x4*(parseInt(_0x1b381c(0x1c1))/0x5)+parseInt(_0x1b381c(0x1b9))/0x6+-parseInt(_0x1b381c(0x1c4))/0x7*(-parseInt(_0x1b381c(0x1c2))/0x8)+-parseInt(_0x1b381c(0x1aa))/0x9+parseInt(_0x1b381c(0x1b7))/0xa;if(_0x4bdc95===_0x10895b)break;else _0x2a3503['push'](_0x2a3503['shift']());}catch(_0x595235){_0x2a3503['push'](_0x2a3503['shift']());}}}(a158_0x2beb,0xae121));import{existsSync,readFileSync}from'fs';import a158_0x2458cf from'path';const TDX_CONFIG_FILE=a158_0x4cec47(0x1b2),SEGMENTS_DIR=a158_0x4cec47(0x1af);export function findTdxConfigPath(_0x504e21=process[a158_0x4cec47(0x1ab)]()){const _0x207f09=a158_0x4cec47;let _0x3d8fe7=a158_0x2458cf[_0x207f09(0x1bf)](_0x504e21);const _0x567336=a158_0x2458cf[_0x207f09(0x1ac)](_0x3d8fe7)[_0x207f09(0x1b8)];while(_0x3d8fe7!==_0x567336){const _0x4c4c29=a158_0x2458cf['join'](_0x3d8fe7,TDX_CONFIG_FILE);if(existsSync(_0x4c4c29))return _0x4c4c29;_0x3d8fe7=a158_0x2458cf[_0x207f09(0x1b1)](_0x3d8fe7);}return null;}export function loadTdxConfig(_0x594bfa){const _0x16416f=a158_0x4cec47,_0x592f27=readFileSync(_0x594bfa,_0x16416f(0x1b5));let _0x31b0cc;try{_0x31b0cc=JSON[_0x16416f(0x1ac)](_0x592f27);}catch{throw new Error(_0x16416f(0x1c5)+_0x594bfa);}if(!_0x31b0cc||typeof _0x31b0cc!==_0x16416f(0x1bb))throw new Error(_0x16416f(0x1b3));const _0x1b083c=_0x31b0cc,_0xb1c5a9=_0x1b083c['parent_segment']&&typeof _0x1b083c[_0x16416f(0x1ad)]===_0x16416f(0x1c7),_0x3efe88=_0x1b083c[_0x16416f(0x1bc)]&&typeof _0x1b083c[_0x16416f(0x1bc)]===_0x16416f(0x1c7);if(!_0xb1c5a9&&!_0x3efe88)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x5a733c={};return _0xb1c5a9&&(_0x5a733c['parent_segment']=_0x1b083c[_0x16416f(0x1ad)]),_0x3efe88&&(_0x5a733c['engage_workspace']=_0x1b083c[_0x16416f(0x1bc)]),_0x5a733c;}export function findTdxConfig(_0xb96ebd=process[a158_0x4cec47(0x1ab)]()){const _0x1fe655=a158_0x4cec47,_0x24366b=findTdxConfigPath(_0xb96ebd);if(!_0x24366b)throw new Error(_0x1fe655(0x1bd));const _0x1c843e=loadTdxConfig(_0x24366b),_0x32a567=a158_0x2458cf['dirname'](_0x24366b);return{'config':_0x1c843e,'configPath':_0x24366b,'configDir':_0x32a567};}export function tryFindTdxConfig(_0xe7a340){try{return findTdxConfig(_0xe7a340);}catch{return null;}}export function getSegmentRootDir(_0x372536,_0x42a806=process[a158_0x4cec47(0x1ab)]()){const _0x350f00=a158_0x4cec47;return a158_0x2458cf[_0x350f00(0x1be)](_0x42a806,SEGMENTS_DIR,_0x372536);}export function getTdxConfigPath(_0x236645,_0x49afbf=process[a158_0x4cec47(0x1ab)]()){const _0x112545=a158_0x4cec47;return a158_0x2458cf[_0x112545(0x1be)](getSegmentRootDir(_0x236645,_0x49afbf),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x4be478,_0x311cbe){const _0x24b680=a158_0x4cec47,_0x3921f0=a158_0x2458cf['resolve'](_0x4be478),_0x539f8e=a158_0x2458cf[_0x24b680(0x1c3)](_0x311cbe,_0x3921f0);if(_0x539f8e[_0x24b680(0x1c0)]('..'))return'';return _0x539f8e;}export function localPathToTdFolderPath(_0x304a01){const _0x641ea9=a158_0x4cec47,_0x19b5eb=a158_0x2458cf[_0x641ea9(0x1b1)](_0x304a01);if(_0x19b5eb==='.'||_0x19b5eb==='')return'';return _0x19b5eb[_0x641ea9(0x1ba)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x492b02,_0x12944d){if(!_0x492b02)return _0x12944d;return a158_0x2458cf['join'](_0x12944d,_0x492b02);}export function createTdxConfigContent(_0x3f4e24){const _0x197e0d={'parent_segment':_0x3f4e24};return JSON['stringify'](_0x197e0d,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x52f7df){const _0xa20f55=a158_0x4cec47,_0xbbfc97={'engage_workspace':_0x52f7df};return JSON[_0xa20f55(0x1c6)](_0xbbfc97,null,0x2)+'\x0a';}function a158_0x2beb(){const _0x265635=['16134420SItuhl','root','6858510uHdoDi','replace','object','engage_workspace','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','join','resolve','startsWith','1126920EPttJU','128jobiKB','relative','394884XfPyfy','Invalid\x20JSON\x20in\x20','stringify','string','3112137aqPSWz','cwd','parse','parent_segment','1206382OSFEBJ','segments','12yolWdz','dirname','tdx.json','Invalid\x20tdx.json:\x20expected\x20object','1cJqTCr','utf-8','3962970jGOFRE'];a158_0x2beb=function(){return _0x265635;};return a158_0x2beb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a159_0x1e62c2=a159_0x274d;(function(_0x4afa26,_0x123c42){const _0x2cd0ed=a159_0x274d,_0x4a64f4=_0x4afa26();while(!![]){try{const _0x3966af=-parseInt(_0x2cd0ed(0xc9))/0x1*(-parseInt(_0x2cd0ed(0xb2))/0x2)+parseInt(_0x2cd0ed(0xbe))/0x3*(-parseInt(_0x2cd0ed(0xb9))/0x4)+-parseInt(_0x2cd0ed(0xaa))/0x5+-parseInt(_0x2cd0ed(0xa2))/0x6+-parseInt(_0x2cd0ed(0xa8))/0x7*(-parseInt(_0x2cd0ed(0xb5))/0x8)+parseInt(_0x2cd0ed(0xa3))/0x9+parseInt(_0x2cd0ed(0xb4))/0xa;if(_0x3966af===_0x123c42)break;else _0x4a64f4['push'](_0x4a64f4['shift']());}catch(_0x4606c6){_0x4a64f4['push'](_0x4a64f4['shift']());}}}(a159_0x3fe7,0x34665));function a159_0x3fe7(){const _0x505590=['Connection\x20name\x20is\x20required','union','Top-N','enum','267PcwglE','onFailure','hour','day','Last','cron','month','minute','All','nullable','optional','77578mbUHJJ','array','min','First','unknown','1982166VQasdy','177111pVENOr','hourly','boolean','weekly','number','930874JrFTPB','masked','1360520ayCoLR','cols','Activation\x20name\x20is\x20required','desc','record','object','asc','clear','8LCdblG','string','6229900DsAZCy','8phZScw','onSuccess','week','none','12084ocDhvs'];a159_0x3fe7=function(){return _0x505590;};return a159_0x3fe7();}import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb8),a159_0x1e62c2(0xa4),'daily',a159_0x1e62c2(0xa6),'monthly',a159_0x1e62c2(0xc3),'minutes_interval']);export const RepeatUnitSchema=z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xc5),a159_0x1e62c2(0xc0),a159_0x1e62c2(0xc1),a159_0x1e62c2(0xb7),a159_0x1e62c2(0xc4),'once',a159_0x1e62c2(0xb8)]);export const ScheduleDefSchema=z[a159_0x1e62c2(0xaf)]({'type':ScheduleTypeSchema[a159_0x1e62c2(0xc8)](),'repeat_unit':RepeatUnitSchema[a159_0x1e62c2(0xc8)](),'repeat_frequency':z[a159_0x1e62c2(0xa7)]()[a159_0x1e62c2(0xc8)](),'repeat_sub_frequency':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xa7)]())['optional'](),'start_at':z['string']()['nullable']()[a159_0x1e62c2(0xc8)](),'end_on':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'timezone':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc8)]()});export const NotificationDefSchema=z[a159_0x1e62c2(0xaf)]({'notify_on':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb6),a159_0x1e62c2(0xbf)]))['optional'](),'email_recipients':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xb3)]())[a159_0x1e62c2(0xc8)]()});function a159_0x274d(_0x1af3c7,_0x1c3c13){_0x1af3c7=_0x1af3c7-0x9e;const _0x3fe780=a159_0x3fe7();let _0x274d8a=_0x3fe780[_0x1af3c7];return _0x274d8a;}export const ActivationColumnDefSchema=z[a159_0x1e62c2(0xbb)]([z['string'](),z['object']({'name':z[a159_0x1e62c2(0xb3)](),'type':z['string']()['optional'](),'visibility':z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb1),'masked'])[a159_0x1e62c2(0xc8)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x1e62c2(0xaf)]({'columns':z['array'](z['object']({'name':z['string'](),'type':z['string']()[a159_0x1e62c2(0xc8)](),'visibility':z[a159_0x1e62c2(0xbd)](['clear',a159_0x1e62c2(0xa9)])[a159_0x1e62c2(0xc8)]()}))[a159_0x1e62c2(0xc8)](),'behavior_table':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc8)](),'join_row':z[a159_0x1e62c2(0xa7)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'join_strategy':z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xc6),a159_0x1e62c2(0xa0),a159_0x1e62c2(0xc2),a159_0x1e62c2(0xbc)])['optional'](),'formatting':z[a159_0x1e62c2(0xbd)](['rows',a159_0x1e62c2(0xab)])['optional'](),'order_by':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xaf)]({'key':z[a159_0x1e62c2(0xb3)](),'order':z['enum']([a159_0x1e62c2(0xb0),a159_0x1e62c2(0xad)])}))[a159_0x1e62c2(0xc8)]()});export const ActivationDefSchema=z[a159_0x1e62c2(0xaf)]({'name':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0x9f)](0x1,a159_0x1e62c2(0xac)),'description':z['string']()['optional'](),'connection':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0x9f)](0x1,a159_0x1e62c2(0xba)),'all_columns':z[a159_0x1e62c2(0xa5)]()[a159_0x1e62c2(0xc8)](),'columns':z[a159_0x1e62c2(0x9e)](ActivationColumnDefSchema)[a159_0x1e62c2(0xc8)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x1e62c2(0xc8)](),'connector_config':z[a159_0x1e62c2(0xae)](z[a159_0x1e62c2(0xb3)](),z[a159_0x1e62c2(0xa1)]())[a159_0x1e62c2(0xc8)](),'activation_template_id':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'behavior':ActivationBehaviorDefSchema[a159_0x1e62c2(0xc7)]()['optional'](),'run_after_journey_refresh':z[a159_0x1e62c2(0xa5)]()[a159_0x1e62c2(0xc8)]()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a7c8d,_0x2f67c3){var _0xe76b2=a160_0x32ce,_0x5df895=_0x3a7c8d();while(!![]){try{var _0x65af30=parseInt(_0xe76b2(0x120))/0x1+parseInt(_0xe76b2(0x11d))/0x2+-parseInt(_0xe76b2(0x11e))/0x3+parseInt(_0xe76b2(0x121))/0x4*(parseInt(_0xe76b2(0x124))/0x5)+parseInt(_0xe76b2(0x122))/0x6+parseInt(_0xe76b2(0x123))/0x7+-parseInt(_0xe76b2(0x125))/0x8*(parseInt(_0xe76b2(0x11f))/0x9);if(_0x65af30===_0x2f67c3)break;else _0x5df895['push'](_0x5df895['shift']());}catch(_0xd90227){_0x5df895['push'](_0x5df895['shift']());}}}(a160_0x5bcc,0x383ad));function a160_0x32ce(_0x1bce68,_0x316c36){_0x1bce68=_0x1bce68-0x11d;var _0x5bcc58=a160_0x5bcc();var _0x32ced4=_0x5bcc58[_0x1bce68];return _0x32ced4;}function a160_0x5bcc(){var _0x1ae097=['1254048hmtOGU','140998nomGHD','85263fwmqxA','36FxHBlw','318881jUzpIP','8GdZbQE','1630098ojjOrA','1130437vIwiLp','158020YkvWzP'];a160_0x5bcc=function(){return _0x1ae097;};return a160_0x5bcc();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a161_0x2c52c1=a161_0x5384;(function(_0x12beb1,_0x104f4c){const _0x111cc6=a161_0x5384,_0x2b9193=_0x12beb1();while(!![]){try{const _0x2757f9=-parseInt(_0x111cc6(0x146))/0x1+-parseInt(_0x111cc6(0x156))/0x2+parseInt(_0x111cc6(0x155))/0x3+-parseInt(_0x111cc6(0x150))/0x4+parseInt(_0x111cc6(0x167))/0x5*(parseInt(_0x111cc6(0x143))/0x6)+parseInt(_0x111cc6(0x14f))/0x7*(-parseInt(_0x111cc6(0x168))/0x8)+-parseInt(_0x111cc6(0x16b))/0x9*(-parseInt(_0x111cc6(0x152))/0xa);if(_0x2757f9===_0x104f4c)break;else _0x2b9193['push'](_0x2b9193['shift']());}catch(_0xafc99f){_0x2b9193['push'](_0x2b9193['shift']());}}}(a161_0x4544,0x4a79a));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';function a161_0x5384(_0x5d816b,_0x19a1c8){_0x5d816b=_0x5d816b-0x143;const _0x454421=a161_0x4544();let _0x538490=_0x454421[_0x5d816b];return _0x538490;}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x2c52c1(0x158)]([a161_0x2c52c1(0x153),'simulation',a161_0x2c52c1(0x14a)]);export const ReentryModeTypeSchema=z[a161_0x2c52c1(0x158)](['no_reentry',a161_0x2c52c1(0x147),a161_0x2c52c1(0x165)]);export const WaitUnitTypeSchema=z[a161_0x2c52c1(0x158)](['day',a161_0x2c52c1(0x15b)]);export const StepTypeValueSchema=z[a161_0x2c52c1(0x158)](['wait','activation','decision_point',a161_0x2c52c1(0x15c),a161_0x2c52c1(0x14c),a161_0x2c52c1(0x15f),'end']);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x2c52c1(0x15e)]()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x2c52c1(0x14b)]({'journey':z['string'](),'stage':z[a161_0x2c52c1(0x15e)](),'bundle_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)]()});export const CriteriaDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'description':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'segment':z[a161_0x2c52c1(0x15e)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)]()}),WaitConditionDefSchema=z[a161_0x2c52c1(0x14b)]({'segment':z[a161_0x2c52c1(0x15e)](),'next':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x2c52c1(0x160)]()}),WaitStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'duration':z[a161_0x2c52c1(0x162)]()[a161_0x2c52c1(0x160)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z['string']()[a161_0x2c52c1(0x160)](),'condition':WaitConditionDefSchema[a161_0x2c52c1(0x160)](),'days_of_week':z[a161_0x2c52c1(0x15d)](z[a161_0x2c52c1(0x15e)]())[a161_0x2c52c1(0x160)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'next':z[a161_0x2c52c1(0x15e)]()['optional']()},WaitStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x157)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'activation':z[a161_0x2c52c1(0x15e)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x148)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'segment':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'segment_id':z['string']()[a161_0x2c52c1(0x160)](),'excluded':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'next':z['string']()[a161_0x2c52c1(0x160)]()}),DecisionPointStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'branches':z[a161_0x2c52c1(0x15d)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x14d)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x2c52c1(0x14b)]({'id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'name':z[a161_0x2c52c1(0x15e)](),'percentage':z[a161_0x2c52c1(0x162)](),'next':z['string']()[a161_0x2c52c1(0x160)]()}),AbTestStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'variants':z[a161_0x2c52c1(0x15d)](AbTestVariantDefSchema),'unique_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'customized_split':z[a161_0x2c52c1(0x144)]()['optional']()}),AbTestStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x15c)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x14c))}),JumpStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z['literal']('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x159))})[a161_0x2c52c1(0x145)]();export const StepDefSchema=z[a161_0x2c52c1(0x166)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'description':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'id':z['string']()[a161_0x2c52c1(0x160)](),'entry_criteria':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'exit_criteria':z[a161_0x2c52c1(0x15d)](CriteriaDefSchema)[a161_0x2c52c1(0x160)](),'milestone':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'root_step':z['string']()[a161_0x2c52c1(0x160)](),'steps':z[a161_0x2c52c1(0x15d)](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z[a161_0x2c52c1(0x14b)]({'name':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version':z['string']()[a161_0x2c52c1(0x160)](),'state':JourneyStateTypeSchema[a161_0x2c52c1(0x160)](),'latest':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'stages':z[a161_0x2c52c1(0x15d)](StageDefSchema),'id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version_number':z[a161_0x2c52c1(0x162)]()[a161_0x2c52c1(0x160)](),'goal':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'reentry':ReentryModeTypeSchema[a161_0x2c52c1(0x160)]()});export const JourneyDefSchema=z['lazy'](()=>z['object']({'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x15a)),'name':z[a161_0x2c52c1(0x15e)]()['min'](0x1,a161_0x2c52c1(0x161)),'description':z[a161_0x2c52c1(0x15e)]()['optional'](),'bundle_id':z['string']()['optional'](),'bundle_name':z['string']()[a161_0x2c52c1(0x160)](),'folder_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'reentry':ReentryModeTypeSchema[a161_0x2c52c1(0x160)](),'allow_reentry':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'goal':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'id':z['string']()['optional'](),'version':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version_number':z[a161_0x2c52c1(0x162)]()['optional'](),'stages':z[a161_0x2c52c1(0x15d)](StageDefSchema)[a161_0x2c52c1(0x160)](),'versions':z['array'](JourneyEntryDefSchema)[a161_0x2c52c1(0x160)](),'journeys':z['array'](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x2c52c1(0x169)](z['string'](),EmbeddedSegmentDefSchema)[a161_0x2c52c1(0x160)](),'activations':z[a161_0x2c52c1(0x169)](z[a161_0x2c52c1(0x15e)](),ActivationDefSchema)['optional']()})[a161_0x2c52c1(0x151)](_0x1eeaed=>{const _0x516b0=a161_0x2c52c1,_0x2ab6b8=[_0x1eeaed[_0x516b0(0x14e)],_0x1eeaed['stages'],_0x1eeaed[_0x516b0(0x16a)]][_0x516b0(0x149)](_0x205a9e=>Array[_0x516b0(0x164)](_0x205a9e)&&_0x205a9e[_0x516b0(0x154)]>0x0)['length'];return _0x2ab6b8===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];function a161_0x4544(){const _0x543c9f=['passthrough','517106UKNvsV','reentry_unless_goal_achieved','activation','filter','launched','object','merge','decision_point','journeys','4047799gAaODU','1878016bZAvvZ','refine','50itMivI','draft','length','25854GTpoug','13370ZceTlP','wait','enum','end','journey','week','ab_test','array','string','jump','optional','Journey\x20name\x20is\x20required','number','literal','isArray','reentry_always','discriminatedUnion','55dhvvQa','8UqSTJy','record','versions','3359322jFquZA','924RbaIwH','boolean'];a161_0x4544=function(){return _0x543c9f;};return a161_0x4544();}void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c4560,_0x25697c){var _0x23a9d4=a163_0xbba1,_0x1bc436=_0x3c4560();while(!![]){try{var _0x1d4363=parseInt(_0x23a9d4(0x80))/0x1+parseInt(_0x23a9d4(0x7f))/0x2+parseInt(_0x23a9d4(0x82))/0x3*(-parseInt(_0x23a9d4(0x81))/0x4)+-parseInt(_0x23a9d4(0x84))/0x5*(parseInt(_0x23a9d4(0x85))/0x6)+-parseInt(_0x23a9d4(0x7e))/0x7+-parseInt(_0x23a9d4(0x83))/0x8+parseInt(_0x23a9d4(0x86))/0x9*(parseInt(_0x23a9d4(0x7d))/0xa);if(_0x1d4363===_0x25697c)break;else _0x1bc436['push'](_0x1bc436['shift']());}catch(_0x3b1bc7){_0x1bc436['push'](_0x1bc436['shift']());}}}(a163_0x5f57,0xbbe5b));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0xbba1(_0x492e70,_0x5c8b2c){_0x492e70=_0x492e70-0x7d;var _0x5f5796=a163_0x5f57();var _0xbba1b0=_0x5f5796[_0x492e70];return _0xbba1b0;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x5f57(){var _0x589044=['1885281GqsFow','2630480FpODeu','3370195jgUoBi','6UzPPNL','7042806NrTOQQ','20mjkKgR','47922HjLDfg','460420LeiPPf','1240898gjUout','8casCIn'];a163_0x5f57=function(){return _0x589044;};return a163_0x5f57();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a164_0x55e4f8=a164_0x3a4f;(function(_0x10ed10,_0x16432d){const _0x4ddaec=a164_0x3a4f,_0xd10fa8=_0x10ed10();while(!![]){try{const _0x57e9cb=-parseInt(_0x4ddaec(0xc4))/0x1*(parseInt(_0x4ddaec(0xc2))/0x2)+parseInt(_0x4ddaec(0xbc))/0x3*(parseInt(_0x4ddaec(0xf7))/0x4)+-parseInt(_0x4ddaec(0xe9))/0x5+parseInt(_0x4ddaec(0xbb))/0x6+parseInt(_0x4ddaec(0xb6))/0x7*(-parseInt(_0x4ddaec(0xf4))/0x8)+-parseInt(_0x4ddaec(0xcb))/0x9+parseInt(_0x4ddaec(0xad))/0xa*(parseInt(_0x4ddaec(0xf2))/0xb);if(_0x57e9cb===_0x16432d)break;else _0xd10fa8['push'](_0xd10fa8['shift']());}catch(_0x177fd1){_0xd10fa8['push'](_0xd10fa8['shift']());}}}(a164_0x3b5d,0x47b4c));import{z}from'zod';function a164_0x3b5d(){const _0x335719=['exclude','2839980aVsbgp','type','Segment\x20name\x20is\x20required','all','LessEqual','unit','Count','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Min','1293314ufDajq','object','8qlImRL','hour','CountDistinct','2972fRMElX','addIssue','MISSING_TIME_UNIT','minute','any','Average','lazy','operator','Contain','GreaterEqual','Behavior','130YKAGWI','\x27\x20requires\x20a\x20value','string','Regexp','second','enum','funnel_stage','Equal','custom','2103017BXVOOv','from','TimeWithinNext','max','Greater','2941836qQhxrl','978UvkiaX','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','array','IsNull','Segment\x20reference\x20must\x20not\x20be\x20empty','discriminatedUnion','1074634ZzZxbR','And','1HgsnkG','Sum','Between','day','include','realtime','TimeRange\x20operator\x20requires\x20\x27duration\x27','5053806elmeaJ','year','First','batch','literal','number','duration','Less','TimeRange\x20operator\x20requires\x20\x27from\x27','union','\x27\x20requires\x20a\x20time\x20unit','has','TimeWithinPast','superRefine','MISSING_BETWEEN_BOUNDS','EndWith','month','StartWith','Column','optional','Value','value','week','Max','boolean','min','Operator\x20\x27','Last','TimeRange'];a164_0x3b5d=function(){return _0x335719;};return a164_0x3b5d();}export const OperatorTypeSchema=z['enum']([a164_0x55e4f8(0xb4),a164_0x55e4f8(0xba),a164_0x55e4f8(0xd2),a164_0x55e4f8(0xab),a164_0x55e4f8(0xed),'In',a164_0x55e4f8(0xc6),a164_0x55e4f8(0xb0),a164_0x55e4f8(0xbf),'TimeWithinPast',a164_0x55e4f8(0xb8),'Contain',a164_0x55e4f8(0xdc),a164_0x55e4f8(0xda),'TimeRange']);export const TimeUnitSchema=z[a164_0x55e4f8(0xb2)]([a164_0x55e4f8(0xb1),a164_0x55e4f8(0xfa),a164_0x55e4f8(0xf5),a164_0x55e4f8(0xc7),a164_0x55e4f8(0xe1),a164_0x55e4f8(0xdb),a164_0x55e4f8(0xcc)]);export const AggregationTypeSchema=z[a164_0x55e4f8(0xb2)]([a164_0x55e4f8(0xef),a164_0x55e4f8(0xc5),a164_0x55e4f8(0xa7),a164_0x55e4f8(0xf1),'Max',a164_0x55e4f8(0xf6),'First',a164_0x55e4f8(0xe6)]);const TemporalValueSchema=z[a164_0x55e4f8(0xd4)]([z[a164_0x55e4f8(0xf3)]({'timestamp':z[a164_0x55e4f8(0xaf)]()}),z[a164_0x55e4f8(0xf3)]({'last':z[a164_0x55e4f8(0xd4)]([z[a164_0x55e4f8(0xd0)](),z['record'](z[a164_0x55e4f8(0xaf)](),z[a164_0x55e4f8(0xd0)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a164_0x55e4f8(0xd4)]([z[a164_0x55e4f8(0xaf)](),z['number'](),z['boolean'](),TemporalValueSchema,z[a164_0x55e4f8(0xbe)](z[a164_0x55e4f8(0xd4)]([z[a164_0x55e4f8(0xaf)](),z['number'](),z[a164_0x55e4f8(0xe3)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x55e4f8(0xb4),a164_0x55e4f8(0xba),'GreaterEqual',a164_0x55e4f8(0xd2),a164_0x55e4f8(0xed),'In',a164_0x55e4f8(0xaa),a164_0x55e4f8(0xdc),a164_0x55e4f8(0xda),a164_0x55e4f8(0xb0),a164_0x55e4f8(0xd7),a164_0x55e4f8(0xb8)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x55e4f8(0xd7),a164_0x55e4f8(0xb8)]);export const OperatorDefSchema=z[a164_0x55e4f8(0xf3)]({'type':OperatorTypeSchema,'not':z[a164_0x55e4f8(0xe3)]()[a164_0x55e4f8(0xde)](),'value':OperatorValueSchema[a164_0x55e4f8(0xde)](),'min':z[a164_0x55e4f8(0xd4)]([z[a164_0x55e4f8(0xd0)](),z[a164_0x55e4f8(0xaf)](),TemporalValueSchema])[a164_0x55e4f8(0xde)](),'max':z[a164_0x55e4f8(0xd4)]([z[a164_0x55e4f8(0xd0)](),z[a164_0x55e4f8(0xaf)](),TemporalValueSchema])[a164_0x55e4f8(0xde)](),'unit':TimeUnitSchema['optional'](),'duration':z[a164_0x55e4f8(0xf3)]({'day':z['number']()[a164_0x55e4f8(0xde)](),'week':z[a164_0x55e4f8(0xd0)]()['optional'](),'month':z[a164_0x55e4f8(0xd0)]()['optional'](),'year':z[a164_0x55e4f8(0xd0)]()[a164_0x55e4f8(0xde)](),'hour':z['number']()['optional'](),'minute':z[a164_0x55e4f8(0xd0)]()[a164_0x55e4f8(0xde)](),'second':z[a164_0x55e4f8(0xd0)]()[a164_0x55e4f8(0xde)]()})[a164_0x55e4f8(0xde)](),'from':z[a164_0x55e4f8(0xf3)]({'last':z[a164_0x55e4f8(0xd4)]([z['number'](),z[a164_0x55e4f8(0xaf)]()]),'unit':TimeUnitSchema})[a164_0x55e4f8(0xde)](),'reverse':z[a164_0x55e4f8(0xe3)]()['optional']()})['superRefine']((_0x57a904,_0x4f1840)=>{const _0x13e782=a164_0x55e4f8;OPERATORS_REQUIRING_VALUE[_0x13e782(0xd6)](_0x57a904[_0x13e782(0xea)])&&(_0x57a904['value']===undefined||_0x57a904[_0x13e782(0xe0)]===null)&&_0x4f1840['addIssue']({'code':_0x13e782(0xb5),'message':_0x13e782(0xe5)+_0x57a904[_0x13e782(0xea)]+_0x13e782(0xae),'path':['value']}),_0x57a904['type']===_0x13e782(0xc6)&&_0x57a904[_0x13e782(0xe4)]===undefined&&_0x57a904[_0x13e782(0xb9)]===undefined&&_0x4f1840['addIssue']({'code':'custom','message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0x13e782(0xd9)}}),OPERATORS_REQUIRING_UNIT[_0x13e782(0xd6)](_0x57a904[_0x13e782(0xea)])&&_0x57a904[_0x13e782(0xe0)]!==undefined&&!_0x57a904['unit']&&_0x4f1840['addIssue']({'code':'custom','message':_0x13e782(0xe5)+_0x57a904[_0x13e782(0xea)]+_0x13e782(0xd5),'path':[_0x13e782(0xee)],'params':{'validationCode':_0x13e782(0xf9)}}),_0x57a904[_0x13e782(0xea)]==='TimeRange'&&(!_0x57a904[_0x13e782(0xd1)]&&_0x4f1840[_0x13e782(0xf8)]({'code':'custom','message':_0x13e782(0xca),'path':['duration']}),!_0x57a904[_0x13e782(0xb7)]&&_0x4f1840[_0x13e782(0xf8)]({'code':'custom','message':_0x13e782(0xd3),'path':[_0x13e782(0xb7)]}));});export const ArrayMatchingSchema=z['union']([z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xa6)),z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xec)),z[a164_0x55e4f8(0xf3)]({'atLeast':z[a164_0x55e4f8(0xd0)]()}),z[a164_0x55e4f8(0xf3)]({'atMost':z['number']()}),z[a164_0x55e4f8(0xf3)]({'exactly':z[a164_0x55e4f8(0xd0)]()})]);export const AggregationDefSchema=z[a164_0x55e4f8(0xc1)](a164_0x55e4f8(0xea),[z['object']({'type':z['enum']([a164_0x55e4f8(0xc5),a164_0x55e4f8(0xf1),a164_0x55e4f8(0xe2),a164_0x55e4f8(0xa7)]),'column':z[a164_0x55e4f8(0xaf)](),'groupingColumns':z['array'](z['string']())[a164_0x55e4f8(0xde)]()}),z['object']({'type':z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xef)),'groupingColumns':z[a164_0x55e4f8(0xbe)](z[a164_0x55e4f8(0xaf)]())['optional']()}),z['object']({'type':z[a164_0x55e4f8(0xcf)]('CountDistinct'),'columns':z[a164_0x55e4f8(0xbe)](z['string']())}),z[a164_0x55e4f8(0xf3)]({'type':z['enum']([a164_0x55e4f8(0xcd),a164_0x55e4f8(0xe6)]),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a164_0x55e4f8(0xbe)](z[a164_0x55e4f8(0xaf)]())[a164_0x55e4f8(0xde)]()})]);export const TimeWindowDefSchema=z[a164_0x55e4f8(0xf3)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set(['TimeWithinPast',a164_0x55e4f8(0xb8),a164_0x55e4f8(0xe7)]);export const FilterColumnConditionDefSchema=z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xdd)),'column':z[a164_0x55e4f8(0xaf)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x55e4f8(0xde)]()})[a164_0x55e4f8(0xd8)]((_0xfe1552,_0x1cc493)=>{const _0x3b627e=a164_0x55e4f8,_0x58a2c3=_0xfe1552[_0x3b627e(0xa9)][_0x3b627e(0xea)];_0xfe1552['column']==='timestamp'?!TIMESTAMP_OPERATORS[_0x3b627e(0xd6)](_0x58a2c3)&&_0x1cc493['addIssue']({'code':'custom','message':_0x3b627e(0xf0)+_0x58a2c3+'\x27)','path':['operator',_0x3b627e(0xea)]}):TIMESTAMP_OPERATORS[_0x3b627e(0xd6)](_0x58a2c3)&&_0x1cc493[_0x3b627e(0xf8)]({'code':_0x3b627e(0xb5),'message':_0x3b627e(0xe5)+_0x58a2c3+_0x3b627e(0xbd),'path':['operator',_0x3b627e(0xea)]});});export const FilterRuleDefSchema=z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xc3)),'conditions':z[a164_0x55e4f8(0xbe)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x55e4f8(0xa8)](()=>z['object']({'type':z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xdf)),'attribute':z[a164_0x55e4f8(0xaf)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x55e4f8(0xe3)]()['optional'](),'aggregation':AggregationDefSchema[a164_0x55e4f8(0xde)](),'source':z['string']()[a164_0x55e4f8(0xde)](),'filter':FilterRuleDefSchema[a164_0x55e4f8(0xde)](),'limit':z[a164_0x55e4f8(0xd0)]()[a164_0x55e4f8(0xde)]()}));export const BehaviorConditionDefSchema=z[a164_0x55e4f8(0xa8)](()=>z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xac)),'attribute':z[a164_0x55e4f8(0xaf)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x55e4f8(0xde)](),'exclude':z[a164_0x55e4f8(0xe3)]()[a164_0x55e4f8(0xde)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x55e4f8(0xaf)]()[a164_0x55e4f8(0xde)](),'filter':FilterRuleDefSchema[a164_0x55e4f8(0xde)](),'timeWindow':TimeWindowDefSchema[a164_0x55e4f8(0xde)](),'limit':z['number']()[a164_0x55e4f8(0xde)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x55e4f8(0xcf)](a164_0x55e4f8(0xdd)),'column':z[a164_0x55e4f8(0xaf)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x55e4f8(0xa8)](()=>z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xb2)]([a164_0x55e4f8(0xc3),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a164_0x55e4f8(0xaf)]()[a164_0x55e4f8(0xde)]()}));export const SegmentRefConditionDefSchema=z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xb2)]([a164_0x55e4f8(0xc8),a164_0x55e4f8(0xe8)]),'segment':z[a164_0x55e4f8(0xaf)]()['min'](0x1,a164_0x55e4f8(0xc0))});export const ConditionDefSchema=z[a164_0x55e4f8(0xa8)](()=>z[a164_0x55e4f8(0xd4)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xb2)]([a164_0x55e4f8(0xc3),'Or']),'conditions':z[a164_0x55e4f8(0xbe)](ConditionDefSchema),'description':z[a164_0x55e4f8(0xaf)]()['optional']()}));function a164_0x3a4f(_0x27d1ff,_0x20f05e){_0x27d1ff=_0x27d1ff-0xa6;const _0x3b5da3=a164_0x3b5d();let _0x3a4f4d=_0x3b5da3[_0x27d1ff];return _0x3a4f4d;}export const SegmentDefSchema=z[a164_0x55e4f8(0xf3)]({'type':z[a164_0x55e4f8(0xcf)]('segment')[a164_0x55e4f8(0xde)](),'name':z[a164_0x55e4f8(0xaf)]()[a164_0x55e4f8(0xe4)](0x1,a164_0x55e4f8(0xeb)),'description':z['string']()[a164_0x55e4f8(0xde)](),'folder':z[a164_0x55e4f8(0xaf)]()[a164_0x55e4f8(0xde)](),'rule':RuleDefSchema['optional'](),'kind':z[a164_0x55e4f8(0xb2)]([a164_0x55e4f8(0xce),a164_0x55e4f8(0xc9),a164_0x55e4f8(0xb3)])[a164_0x55e4f8(0xde)](),'visible':z['boolean']()[a164_0x55e4f8(0xde)](),'activations':z[a164_0x55e4f8(0xbe)](z[a164_0x55e4f8(0xa6)]())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a164_0x2505bf=a164_0x3186;(function(_0x101f2f,_0x27d823){const _0x30bf9e=a164_0x3186,_0xdde309=_0x101f2f();while(!![]){try{const _0x2cc775=parseInt(_0x30bf9e(0x141))/0x1+parseInt(_0x30bf9e(0x14d))/0x2+-parseInt(_0x30bf9e(0x145))/0x3+-parseInt(_0x30bf9e(0x133))/0x4+-parseInt(_0x30bf9e(0x12b))/0x5+-parseInt(_0x30bf9e(0x157))/0x6+-parseInt(_0x30bf9e(0x178))/0x7*(-parseInt(_0x30bf9e(0x16c))/0x8);if(_0x2cc775===_0x27d823)break;else _0xdde309['push'](_0xdde309['shift']());}catch(_0x385a9e){_0xdde309['push'](_0xdde309['shift']());}}}(a164_0x5747,0x2916f));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x160),a164_0x2505bf(0x175),a164_0x2505bf(0x13a),'GreaterEqual',a164_0x2505bf(0x15c),'In',a164_0x2505bf(0x161),'Regexp',a164_0x2505bf(0x142),a164_0x2505bf(0x143),a164_0x2505bf(0x14b),a164_0x2505bf(0x16f),a164_0x2505bf(0x137),a164_0x2505bf(0x15b),a164_0x2505bf(0x12c)]);export const TimeUnitSchema=z['enum'](['second',a164_0x2505bf(0x15f),a164_0x2505bf(0x15e),a164_0x2505bf(0x136),a164_0x2505bf(0x152),'month',a164_0x2505bf(0x172)]);export const AggregationTypeSchema=z['enum']([a164_0x2505bf(0x14a),a164_0x2505bf(0x153),a164_0x2505bf(0x162),a164_0x2505bf(0x177),a164_0x2505bf(0x164),a164_0x2505bf(0x134),'First',a164_0x2505bf(0x147)]);const TemporalValueSchema=z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x14c)]({'timestamp':z[a164_0x2505bf(0x14e)]()}),z[a164_0x2505bf(0x14c)]({'last':z[a164_0x2505bf(0x12e)]([z['number'](),z[a164_0x2505bf(0x174)](z[a164_0x2505bf(0x14e)](),z[a164_0x2505bf(0x170)]())]),'unit':z[a164_0x2505bf(0x14e)]()})]),OperatorValueSchema=z[a164_0x2505bf(0x12e)]([z['string'](),z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x158)](),TemporalValueSchema,z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x14e)](),z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x158)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x2505bf(0x160),a164_0x2505bf(0x175),a164_0x2505bf(0x135),'Less',a164_0x2505bf(0x15c),'In',a164_0x2505bf(0x16f),a164_0x2505bf(0x137),a164_0x2505bf(0x15b),a164_0x2505bf(0x13c),'TimeWithinPast',a164_0x2505bf(0x14b)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x2505bf(0x143),a164_0x2505bf(0x14b)]);export const OperatorDefSchema=z[a164_0x2505bf(0x14c)]({'type':OperatorTypeSchema,'not':z[a164_0x2505bf(0x158)]()['optional'](),'value':OperatorValueSchema[a164_0x2505bf(0x131)](),'min':z['union']([z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x14e)](),TemporalValueSchema])[a164_0x2505bf(0x131)](),'max':z['union']([z['number'](),z[a164_0x2505bf(0x14e)](),TemporalValueSchema])[a164_0x2505bf(0x131)](),'unit':TimeUnitSchema[a164_0x2505bf(0x131)](),'duration':z[a164_0x2505bf(0x14c)]({'day':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'week':z[a164_0x2505bf(0x170)]()['optional'](),'month':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'year':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'hour':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'minute':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'second':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)]()})[a164_0x2505bf(0x131)](),'from':z[a164_0x2505bf(0x14c)]({'last':z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x14e)]()]),'unit':TimeUnitSchema})[a164_0x2505bf(0x131)](),'reverse':z[a164_0x2505bf(0x158)]()[a164_0x2505bf(0x131)]()})[a164_0x2505bf(0x12f)]((_0x5b83ce,_0x17d51f)=>{const _0x5ba2e9=a164_0x2505bf;OPERATORS_REQUIRING_VALUE[_0x5ba2e9(0x13d)](_0x5b83ce['type'])&&(_0x5b83ce[_0x5ba2e9(0x15d)]===undefined||_0x5b83ce[_0x5ba2e9(0x15d)]===null)&&_0x17d51f['addIssue']({'code':'custom','message':_0x5ba2e9(0x14f)+_0x5b83ce[_0x5ba2e9(0x150)]+_0x5ba2e9(0x155),'path':[_0x5ba2e9(0x15d)]}),_0x5b83ce[_0x5ba2e9(0x150)]===_0x5ba2e9(0x161)&&_0x5b83ce['min']===undefined&&_0x5b83ce[_0x5ba2e9(0x165)]===undefined&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':'custom','message':_0x5ba2e9(0x16b),'params':{'validationCode':_0x5ba2e9(0x16e)}}),OPERATORS_REQUIRING_UNIT[_0x5ba2e9(0x13d)](_0x5b83ce['type'])&&_0x5b83ce[_0x5ba2e9(0x15d)]!==undefined&&!_0x5b83ce['unit']&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':'custom','message':_0x5ba2e9(0x14f)+_0x5b83ce[_0x5ba2e9(0x150)]+_0x5ba2e9(0x166),'path':[_0x5ba2e9(0x159)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x5b83ce[_0x5ba2e9(0x150)]===_0x5ba2e9(0x12c)&&(!_0x5b83ce['duration']&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':_0x5ba2e9(0x151),'message':_0x5ba2e9(0x13e),'path':['duration']}),!_0x5b83ce[_0x5ba2e9(0x132)]&&_0x17d51f['addIssue']({'code':_0x5ba2e9(0x151),'message':_0x5ba2e9(0x12d),'path':[_0x5ba2e9(0x132)]}));});export const ArrayMatchingSchema=z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x144)),z[a164_0x2505bf(0x13f)]('all'),z[a164_0x2505bf(0x14c)]({'atLeast':z['number']()}),z[a164_0x2505bf(0x14c)]({'atMost':z['number']()}),z['object']({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x2505bf(0x168)]('type',[z['object']({'type':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x153),a164_0x2505bf(0x177),a164_0x2505bf(0x164),a164_0x2505bf(0x162)]),'column':z[a164_0x2505bf(0x14e)](),'groupingColumns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()}),z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x14a)),'groupingColumns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()}),z['object']({'type':z['literal'](a164_0x2505bf(0x134)),'columns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())}),z[a164_0x2505bf(0x14c)]({'type':z['enum']([a164_0x2505bf(0x130),a164_0x2505bf(0x147)]),'column':z[a164_0x2505bf(0x14e)](),'orderColumn':z[a164_0x2505bf(0x14e)](),'groupingColumns':z['array'](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()})]);export const TimeWindowDefSchema=z[a164_0x2505bf(0x14c)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x2505bf(0x143),a164_0x2505bf(0x14b),a164_0x2505bf(0x12c)]);export const FilterColumnConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x12a)),'column':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})['superRefine']((_0x4e1bf9,_0x31a452)=>{const _0x401a28=a164_0x2505bf,_0x7aa338=_0x4e1bf9[_0x401a28(0x171)][_0x401a28(0x150)];_0x4e1bf9['column']==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x7aa338)&&_0x31a452[_0x401a28(0x16d)]({'code':_0x401a28(0x151),'message':_0x401a28(0x176)+_0x7aa338+'\x27)','path':[_0x401a28(0x171),_0x401a28(0x150)]}):TIMESTAMP_OPERATORS[_0x401a28(0x13d)](_0x7aa338)&&_0x31a452[_0x401a28(0x16d)]({'code':_0x401a28(0x151),'message':_0x401a28(0x14f)+_0x7aa338+_0x401a28(0x169),'path':[_0x401a28(0x171),_0x401a28(0x150)]});});export const FilterRuleDefSchema=z['object']({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x13b)),'conditions':z['array'](FilterColumnConditionDefSchema)});function a164_0x3186(_0x498110,_0x548456){_0x498110=_0x498110-0x12a;const _0x57477a=a164_0x5747();let _0x31861b=_0x57477a[_0x498110];return _0x31861b;}export const ValueConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x14c)]({'type':z['literal'](a164_0x2505bf(0x148)),'attribute':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2505bf(0x131)](),'exclude':z[a164_0x2505bf(0x158)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'filter':FilterRuleDefSchema[a164_0x2505bf(0x131)](),'limit':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)]()}));export const BehaviorConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x146)),'attribute':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2505bf(0x131)](),'exclude':z['boolean']()[a164_0x2505bf(0x131)](),'aggregation':AggregationDefSchema[a164_0x2505bf(0x131)](),'source':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'filter':FilterRuleDefSchema[a164_0x2505bf(0x131)](),'timeWindow':TimeWindowDefSchema[a164_0x2505bf(0x131)](),'limit':z['number']()[a164_0x2505bf(0x131)]()}));export const ColumnConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x12a)),'column':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a164_0x2505bf(0x13b),'Or']),'conditions':z[a164_0x2505bf(0x156)](ConditionDefSchema),'description':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)]()}));export const SegmentRefConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x15a),a164_0x2505bf(0x167)]),'segment':z['string']()[a164_0x2505bf(0x154)](0x1,a164_0x2505bf(0x179))});export const ConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x12e)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x163)](['And','Or']),'conditions':z[a164_0x2505bf(0x156)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentDefSchema=z['object']({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x138))[a164_0x2505bf(0x131)](),'name':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x154)](0x1,a164_0x2505bf(0x140)),'description':z[a164_0x2505bf(0x14e)]()['optional'](),'folder':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'rule':RuleDefSchema[a164_0x2505bf(0x131)](),'kind':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x149),a164_0x2505bf(0x16a),a164_0x2505bf(0x139)])[a164_0x2505bf(0x131)](),'visible':z['boolean']()[a164_0x2505bf(0x131)](),'activations':z['array'](z['any']())[a164_0x2505bf(0x131)]()});function a164_0x5747(){const _0x2488dd=['Segment\x20name\x20is\x20required','132715DYiaUv','IsNull','TimeWithinPast','any','327426MQYiTy','Behavior','Last','Value','batch','Count','TimeWithinNext','object','410100gwReyT','string','Operator\x20\x27','type','custom','week','Sum','min','\x27\x20requires\x20a\x20value','array','967098mPPnGj','boolean','unit','include','EndWith','LessEqual','value','hour','minute','Equal','Between','Average','enum','Max','max','\x27\x20requires\x20a\x20time\x20unit','exclude','discriminatedUnion','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','realtime','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','916600SAXHnP','addIssue','MISSING_BETWEEN_BOUNDS','Contain','number','operator','year','lazy','record','Greater','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Min','21OdrhfK','Segment\x20reference\x20must\x20not\x20be\x20empty','Column','1121210EswUUH','TimeRange','TimeRange\x20operator\x20requires\x20\x27from\x27','union','superRefine','First','optional','from','74480VRKezD','CountDistinct','GreaterEqual','day','StartWith','segment','funnel_stage','Less','And','Regexp','has','TimeRange\x20operator\x20requires\x20\x27duration\x27','literal'];a164_0x5747=function(){return _0x2488dd;};return a164_0x5747();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x74466c=a165_0x2794;(function(_0x59bbd1,_0x51bb44){const _0xd464e1=a165_0x2794,_0xb6d3a5=_0x59bbd1();while(!![]){try{const _0x531d71=-parseInt(_0xd464e1(0x1c3))/0x1*(-parseInt(_0xd464e1(0x1d4))/0x2)+-parseInt(_0xd464e1(0x1cb))/0x3*(-parseInt(_0xd464e1(0x1d1))/0x4)+parseInt(_0xd464e1(0x1c0))/0x5+parseInt(_0xd464e1(0x1d7))/0x6+-parseInt(_0xd464e1(0x1d3))/0x7*(-parseInt(_0xd464e1(0x1c9))/0x8)+parseInt(_0xd464e1(0x1ce))/0x9+-parseInt(_0xd464e1(0x1d0))/0xa;if(_0x531d71===_0x51bb44)break;else _0xb6d3a5['push'](_0xb6d3a5['shift']());}catch(_0x1d3027){_0xb6d3a5['push'](_0xb6d3a5['shift']());}}}(a165_0x5d87,0x4c495));function a165_0x5d87(){const _0x4c8ecb=['not\x20a\x20','result','1975565jslTgy','message','campaign','227LqQmoI','basename','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','warnings','YAML\x20parse\x20error:\x20','error','1744uzjAtT','template','12GEePvO','campaign_type','skipped','53163icXpTS','toJSON','17614960cFzgjE','606748qIoefx','parseDocument','13447yVGdrM','1222NJHYQN','has','email','3052332UCtYWH','map','type','journey','length','segment','push','object','YAML_PARSE_ERROR','filterType','utf-8'];a165_0x5d87=function(){return _0x4c8ecb;};return a165_0x5d87();}import{readFileSync}from'fs';import*as a165_0x2f0873 from'path';function a165_0x2794(_0x107a79,_0xae753f){_0x107a79=_0x107a79-0x1bb;const _0x5d8726=a165_0x5d87();let _0x2794fa=_0x5d8726[_0x107a79];return _0x2794fa;}import*as a165_0x5eb3eb from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a165_0x74466c(0x1d6),a165_0x74466c(0x1dd)]);export function isJourneyDef(_0xff1eaa){const _0x5d699f=a165_0x74466c;return typeof _0xff1eaa===_0x5d699f(0x1de)&&_0xff1eaa!==null&&_0x5d699f(0x1d9)in _0xff1eaa&&_0xff1eaa[_0x5d699f(0x1d9)]===_0x5d699f(0x1da);}export function isCampaignDef(_0x4ed6b5){const _0x27e87a=a165_0x74466c;if(typeof _0x4ed6b5!=='object'||_0x4ed6b5===null)return![];const _0xbe6756=_0x4ed6b5,_0x3d4d1f=VALID_CAMPAIGN_TYPES[_0x27e87a(0x1d5)](_0xbe6756[_0x27e87a(0x1cc)]);if(_0xbe6756[_0x27e87a(0x1d9)]===_0x27e87a(0x1c2)&&_0x3d4d1f)return!![];if(_0x3d4d1f&&!_0xbe6756[_0x27e87a(0x1d9)])return!![];return![];}export function isTemplateDef(_0x206991){const _0x292a5e=a165_0x74466c;return typeof _0x206991==='object'&&_0x206991!==null&&_0x292a5e(0x1d9)in _0x206991&&_0x206991[_0x292a5e(0x1d9)]===_0x292a5e(0x1ca);}export function isValidationResult(_0x48b115){const _0x24908b=a165_0x74466c;return!(_0x24908b(0x1cd)in _0x48b115);}export function createParseErrorResult(_0x9d2f5f,_0x55e460,_0x145aab,_0x270bf5,_0x52633f='segment'){const _0x3d2f43=a165_0x74466c;return{'filePath':_0x9d2f5f,'relativePath':_0x55e460,'source':_0x145aab,'result':{'valid':![],'errors':[{'level':_0x3d2f43(0x1c8),'path':'','code':_0x3d2f43(0x1bb),'message':_0x270bf5}],'warnings':[]},'fileType':_0x52633f};}export function validateYamlFile(_0x17fe22,_0x6b8eff,_0x53a905={}){const _0x1ac9d3=a165_0x74466c,_0x50b928=a165_0x2f0873['relative'](_0x6b8eff,_0x17fe22)||a165_0x2f0873[_0x1ac9d3(0x1c4)](_0x17fe22);try{const _0x3c80d6=readFileSync(_0x17fe22,_0x1ac9d3(0x1bd)),_0x48b809=a165_0x5eb3eb[_0x1ac9d3(0x1d2)](_0x3c80d6),_0x25b5f2=_0x48b809[_0x1ac9d3(0x1cf)]();if(!_0x25b5f2)return createParseErrorResult(_0x17fe22,_0x50b928,_0x3c80d6,_0x1ac9d3(0x1c5));let _0x1dd1a3;if(isJourneyDef(_0x25b5f2))_0x1dd1a3=_0x1ac9d3(0x1da);else{if(isCampaignDef(_0x25b5f2))_0x1dd1a3='campaign';else isTemplateDef(_0x25b5f2)?_0x1dd1a3='template':_0x1dd1a3=_0x1ac9d3(0x1dc);}if(_0x53a905[_0x1ac9d3(0x1bc)]&&_0x1dd1a3!==_0x53a905[_0x1ac9d3(0x1bc)])return{'filePath':_0x17fe22,'relativePath':_0x50b928,'skipped':!![],'reason':_0x1ac9d3(0x1be)+_0x53a905[_0x1ac9d3(0x1bc)]};const _0x1056e5={'source':_0x3c80d6,'document':_0x48b809};let _0x173cca;if(_0x1dd1a3===_0x1ac9d3(0x1da))_0x173cca=validateJourneyDef(_0x25b5f2,_0x1056e5);else{if(_0x1dd1a3===_0x1ac9d3(0x1c2))_0x173cca=validateCampaignDef(_0x25b5f2,_0x1056e5);else _0x1dd1a3===_0x1ac9d3(0x1ca)?_0x173cca=validateTemplateDef(_0x25b5f2,_0x1056e5):_0x173cca=validateSegmentDef(_0x25b5f2,_0x1056e5);}return{'filePath':_0x17fe22,'relativePath':_0x50b928,'source':_0x3c80d6,'result':_0x173cca,'fileType':_0x1dd1a3};}catch(_0x5c3d05){const _0x106a3f=_0x5c3d05 instanceof Error?_0x5c3d05[_0x1ac9d3(0x1c1)]:String(_0x5c3d05);return createParseErrorResult(_0x17fe22,_0x50b928,'',_0x1ac9d3(0x1c7)+_0x106a3f);}}export function validateYamlFiles(_0x5449eb,_0x1f8bea,_0x4f2b49={}){const _0x1244b6=a165_0x74466c;return _0x5449eb[_0x1244b6(0x1d8)](_0x58f2d1=>validateYamlFile(_0x58f2d1,_0x1f8bea,_0x4f2b49));}export function calculateSummary(_0x31eebd){const _0x4ca496=a165_0x74466c;let _0x3b3815=0x0,_0x2c6253=0x0,_0x563449=0x0,_0x44a1cf=0x0;for(const _0x15be1c of _0x31eebd){if(!isValidationResult(_0x15be1c)){_0x44a1cf++;continue;}_0x15be1c[_0x4ca496(0x1bf)]['valid']?_0x3b3815++:_0x2c6253++,_0x563449+=_0x15be1c['result'][_0x4ca496(0x1c6)][_0x4ca496(0x1db)];}return{'validCount':_0x3b3815,'invalidCount':_0x2c6253,'warningCount':_0x563449,'skippedCount':_0x44a1cf,'hasErrors':_0x2c6253>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54173d,_0x20a655){const _0x2aa72e=a166_0x38a8,_0x21367d=_0x54173d();while(!![]){try{const _0x43e580=-parseInt(_0x2aa72e(0x1f1))/0x1+parseInt(_0x2aa72e(0x209))/0x2*(-parseInt(_0x2aa72e(0x215))/0x3)+parseInt(_0x2aa72e(0x20d))/0x4+parseInt(_0x2aa72e(0x1ef))/0x5+parseInt(_0x2aa72e(0x1fe))/0x6+parseInt(_0x2aa72e(0x20e))/0x7*(parseInt(_0x2aa72e(0x1ee))/0x8)+-parseInt(_0x2aa72e(0x203))/0x9;if(_0x43e580===_0x20a655)break;else _0x21367d['push'](_0x21367d['shift']());}catch(_0x3e77a4){_0x21367d['push'](_0x21367d['shift']());}}}(a166_0x4106,0xd1ee9));import*as a166_0x4abb15 from'yaml';function a166_0x38a8(_0x48c1ee,_0x3c093a){_0x48c1ee=_0x48c1ee-0x1ec;const _0x410672=a166_0x4106();let _0x38a818=_0x410672[_0x48c1ee];return _0x38a818;}import a166_0x335614 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x4cd911,_0x5188c9,_0x4dba60){const _0x25ce49=a166_0x38a8;if(!_0x4cd911||!_0x5188c9)return undefined;try{let _0x557419=_0x4cd911['getIn'](_0x4dba60,!![]),_0x5dac5e=[..._0x4dba60];while((!_0x557419||typeof _0x557419!==_0x25ce49(0x20f)||!(_0x25ce49(0x201)in _0x557419)||!_0x557419['range'])&&_0x5dac5e[_0x25ce49(0x205)]>0x0){_0x5dac5e[_0x25ce49(0x212)](),_0x557419=_0x5dac5e[_0x25ce49(0x205)]>0x0?_0x4cd911['getIn'](_0x5dac5e,!![]):_0x4cd911[_0x25ce49(0x206)];}if(!_0x557419||typeof _0x557419!==_0x25ce49(0x20f)||!(_0x25ce49(0x201)in _0x557419)||!_0x557419[_0x25ce49(0x201)])return undefined;const [_0x34fdfb]=_0x557419['range'];return offsetToLocation(_0x5188c9,_0x34fdfb);}catch{return undefined;}}function a166_0x4106(){const _0x279d5e=['push','4QFqqdr','success','cyan','errors','5093328cPojrW','203JytXSP','object','column','message','pop','match','YAML\x20validation\x20error\x20at\x20\x27','459231KLTkSl','flatMap','location','level','133576IevmzW','513105LOplsm','padStart','541292qFdZkC','invalid_union','Invalid\x20YAML:\x20expected\x20an\x20object','path','yellow','code','data','\x20|\x20','split','error','map','YAML\x20validation\x20error:\x20','red','7748082xmoNxH','line','number','range','dim','12997674yNFDCj','repeat','length','contents','join'];a166_0x4106=function(){return _0x279d5e;};return a166_0x4106();}export function offsetToLocation(_0x4fa688,_0x2e0cbb){let _0x3c7912=0x1,_0x2f5283=0x1;for(let _0x10f808=0x0;_0x10f808<_0x2e0cbb&&_0x10f808<_0x4fa688['length'];_0x10f808++){_0x4fa688[_0x10f808]==='\x0a'?(_0x3c7912++,_0x2f5283=0x1):_0x2f5283++;}return{'line':_0x3c7912,'column':_0x2f5283,'offset':_0x2e0cbb};}export function pathToArray(_0x49d9dc){const _0x360ec7=a166_0x38a8;if(!_0x49d9dc)return[];return _0x49d9dc['split']('.')[_0x360ec7(0x216)](_0x447cfc=>{const _0x38c87f=_0x360ec7,_0xdf02f7=_0x447cfc[_0x38c87f(0x213)](/^(\w+)\[(\d+)\]$/);if(_0xdf02f7)return[_0xdf02f7[0x1],parseInt(_0xdf02f7[0x2],0xa)];return[_0x447cfc];});}export function formatZodPath(_0x780a7d){const _0x4db987=a166_0x38a8;let _0x4656f5='';for(const _0x2310de of _0x780a7d){if(typeof _0x2310de===_0x4db987(0x200))_0x4656f5+='['+_0x2310de+']';else{const _0x4d0b70=String(_0x2310de);_0x4656f5+=_0x4656f5?'.'+_0x4d0b70:_0x4d0b70;}}return _0x4656f5;}export function flattenZodIssues(_0x4fec4e){const _0x1b2518=a166_0x38a8,_0x411a65=[];for(const _0x1b2b01 of _0x4fec4e){if(_0x1b2b01[_0x1b2518(0x1f6)]===_0x1b2518(0x1f2)&&_0x1b2518(0x20c)in _0x1b2b01){const _0x4ddd50=_0x1b2b01[_0x1b2518(0x20c)];let _0x5586fa=_0x4ddd50[0x0]||[];for(const _0x41c097 of _0x4ddd50){_0x41c097['length']<_0x5586fa['length']&&(_0x5586fa=_0x41c097);}const _0x578589=_0x5586fa[_0x1b2518(0x1fb)](_0xe8ff45=>({..._0xe8ff45,'path':[..._0x1b2b01[_0x1b2518(0x1f4)],..._0xe8ff45['path']]}));_0x411a65[_0x1b2518(0x208)](...flattenZodIssues(_0x578589));}else _0x411a65['push'](_0x1b2b01);}return _0x411a65;}export function safeParseYaml(_0x3cb8da,_0x2f8e4a){const _0x2b3c85=a166_0x38a8,_0x1156ce=a166_0x4abb15['parse'](_0x3cb8da);if(!_0x1156ce||typeof _0x1156ce!==_0x2b3c85(0x20f))throw new Error(_0x2b3c85(0x1f3));const _0x6a6a7d=_0x2f8e4a['safeParse'](_0x1156ce);if(!_0x6a6a7d[_0x2b3c85(0x20a)]){const _0x3fe0f4=_0x6a6a7d['error']['issues'][0x0],_0x246bb5=formatZodPath(_0x3fe0f4[_0x2b3c85(0x1f4)]);throw new Error(_0x246bb5?_0x2b3c85(0x214)+_0x246bb5+'\x27:\x20'+_0x3fe0f4[_0x2b3c85(0x211)]:_0x2b3c85(0x1fc)+_0x3fe0f4['message']);}return _0x6a6a7d[_0x2b3c85(0x1f7)];}export function formatIssueWithContext(_0x3d840a,_0x55689f,_0x459231){const _0x358ec9=a166_0x38a8,_0x45b971=[],_0x10e565=_0x3d840a['level']===_0x358ec9(0x1fa),_0x59ffe3=_0x10e565?a166_0x335614['red']:a166_0x335614[_0x358ec9(0x1f5)],_0x3ff372=_0x10e565?a166_0x335614[_0x358ec9(0x1fd)]:a166_0x335614[_0x358ec9(0x1f5)],_0x1e4db2=_0x459231?a166_0x335614[_0x358ec9(0x20b)](_0x459231+':'):'';if(_0x3d840a[_0x358ec9(0x1ec)]){const _0x2ee194=a166_0x335614['cyan'](_0x3d840a['location'][_0x358ec9(0x1ff)]+':'+_0x3d840a[_0x358ec9(0x1ec)][_0x358ec9(0x210)]);_0x45b971[_0x358ec9(0x208)](''+_0x1e4db2+_0x2ee194+':\x20'+_0x59ffe3(_0x3d840a[_0x358ec9(0x1ed)])+'\x20'+_0x3ff372('['+_0x3d840a[_0x358ec9(0x1f6)]+']'));}else _0x45b971[_0x358ec9(0x208)](''+_0x1e4db2+a166_0x335614[_0x358ec9(0x202)](_0x3d840a[_0x358ec9(0x1f4)])+':\x20'+_0x59ffe3(_0x3d840a[_0x358ec9(0x1ed)])+'\x20'+_0x3ff372('['+_0x3d840a[_0x358ec9(0x1f6)]+']'));_0x45b971[_0x358ec9(0x208)](_0x3d840a[_0x358ec9(0x211)]);if(_0x3d840a[_0x358ec9(0x1ec)]&&_0x55689f){const _0x2fe82e=_0x55689f[_0x358ec9(0x1f9)]('\x0a'),{line:_0x35f063,column:_0x15f32a}=_0x3d840a[_0x358ec9(0x1ec)],_0x45f24a=Math['max'](0x1,_0x35f063-0x1),_0x32f127=Math['min'](_0x2fe82e[_0x358ec9(0x205)],_0x35f063+0x1);_0x45b971[_0x358ec9(0x208)]('');for(let _0x344fda=_0x45f24a;_0x344fda<=_0x32f127;_0x344fda++){const _0x555277=_0x2fe82e[_0x344fda-0x1]||'',_0x2b6351=a166_0x335614[_0x358ec9(0x202)](_0x344fda['toString']()[_0x358ec9(0x1f0)](0x4)),_0x175d0a=a166_0x335614['dim'](_0x358ec9(0x1f8));if(_0x344fda===_0x35f063){_0x45b971[_0x358ec9(0x208)]('\x20\x20'+_0x2b6351+_0x175d0a+_0x59ffe3(_0x555277));const _0x5e7bb5='\x20'[_0x358ec9(0x204)](0x4+0x3+_0x15f32a-0x1);_0x45b971[_0x358ec9(0x208)]('\x20\x20'+_0x5e7bb5+_0x59ffe3('^'));}else _0x45b971['push']('\x20\x20'+_0x2b6351+_0x175d0a+a166_0x335614[_0x358ec9(0x202)](_0x555277));}}return _0x45b971[_0x358ec9(0x207)]('\x0a');}export function formatValidationResult(_0x1d1c73,_0x9d4cf5,_0x2e760f){const _0x259070=a166_0x38a8,_0x259535=[];for(const _0x12302a of _0x1d1c73['errors']){_0x259535['push'](formatIssueWithContext(_0x12302a,_0x9d4cf5,_0x2e760f)),_0x259535[_0x259070(0x208)]('');}for(const _0x2f5656 of _0x1d1c73['warnings']){_0x259535[_0x259070(0x208)](formatIssueWithContext(_0x2f5656,_0x9d4cf5,_0x2e760f)),_0x259535[_0x259070(0x208)]('');}return _0x259535[_0x259070(0x207)]('\x0a');}
|