@treasuredata/tdx 2026.3.16 → 2026.3.17
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/auth-login-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/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/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.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.js +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/personalization.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/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/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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c9df3,_0x2a60de){const _0x155ec9=a144_0x3850,_0x17597f=_0x4c9df3();while(!![]){try{const _0x35bb20=-parseInt(_0x155ec9(0x187))/0x1+-parseInt(_0x155ec9(0x15c))/0x2*(-parseInt(_0x155ec9(0x16b))/0x3)+parseInt(_0x155ec9(0x17e))/0x4*(-parseInt(_0x155ec9(0x18f))/0x5)+parseInt(_0x155ec9(0x14f))/0x6*(parseInt(_0x155ec9(0x162))/0x7)+parseInt(_0x155ec9(0x159))/0x8*(parseInt(_0x155ec9(0x183))/0x9)+-parseInt(_0x155ec9(0x172))/0xa+parseInt(_0x155ec9(0x186))/0xb*(parseInt(_0x155ec9(0x16e))/0xc);if(_0x35bb20===_0x2a60de)break;else _0x17597f['push'](_0x17597f['shift']());}catch(_0x2bf3e2){_0x17597f['push'](_0x17597f['shift']());}}}(a144_0x58ca,0x4f9b7));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x14df0d,_0x35ebcd={},_0xde223b={}){const _0x56a6b6=a144_0x3850;if(_0xde223b[_0x56a6b6(0x14c)])return runSemanticChecks(_0x14df0d,_0x35ebcd);const _0x426108=SegmentDefSchema[_0x56a6b6(0x188)](_0x14df0d);if(_0x426108[_0x56a6b6(0x180)])return runSemanticChecks(_0x426108[_0x56a6b6(0x16d)],_0x35ebcd);return zodErrorsToValidationResult(_0x426108['error'],_0x35ebcd);}export function validateRuleDef(_0x3e9bff,_0x43fcc4,_0x535272){const _0x59b91e=a144_0x3850;if(!_0x3e9bff)return[];const _0x4e185a=RuleDefSchema[_0x59b91e(0x188)](_0x3e9bff);if(_0x4e185a[_0x59b91e(0x180)])return checkRule(_0x4e185a[_0x59b91e(0x16d)],_0x43fcc4,_0x535272);const _0x51d7d5=flattenZodIssues(_0x4e185a[_0x59b91e(0x157)][_0x59b91e(0x156)]);return _0x51d7d5['map'](_0x52f1fe=>{const _0x3b0228=_0x59b91e,_0x2b5011=formatZodPath(_0x52f1fe[_0x3b0228(0x141)]),_0x1adc25=_0x2b5011?_0x43fcc4+'.'+_0x2b5011:_0x43fcc4,_0x596101=mapZodIssueToCode(_0x52f1fe,_0x2b5011),_0x135467=getLocationFromPath(_0x535272[_0x3b0228(0x13e)],_0x535272[_0x3b0228(0x18c)],pathToArray(_0x1adc25));return{'level':_0x3b0228(0x157),'path':_0x1adc25,'code':_0x596101,'message':_0x52f1fe[_0x3b0228(0x152)],..._0x135467&&{'location':_0x135467}};});}function a144_0x58ca(){const _0x585aaf=['SEGMENT_SCHEMA_ERROR','.operator.type','path','Value','Behavior','length','invalid_value','code','validationCode','match','BEHAVIOR_SOURCE_MISSING_FILTER','.segment','INVALID_RULE_TYPE','skipSchema','conditions','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','6vXCFfx','use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','message','arrayMatching','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','issues','error','name','808MTkCTg','push','.source','2ZbdcQD','rule','INVALID_ARRAY_MATCHING','EMPTY_ATTRIBUTE','MISSING_BETWEEN_BOUNDS','MISSING_SEGMENT_REFERENCE','2212105UkdOWf','INVALID_OPERATOR_TYPE','level','EMPTY_CONDITIONS','.operator.value','.conditions','includes','.conditions[','.type','1291290DmGHoW','Attribute\x20name\x20cannot\x20be\x20empty','data','216fRexde','warning','rule.type','type','6015820BSuRmz','aggregation','\x27\x20with\x20attribute\x20\x27','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20','.attribute','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','endsWith','map','MISSING_TIME_UNIT','params','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','attribute','4dXPKni','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','success','symbol','Behavior\x20source\x20\x27','46791VQubBp','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','MISSING_NAME','42647ewASLB','390158qdFOGj','safeParse','MISSING_CONDITIONS','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','MISSING_OPERATOR_VALUE','source','And','filter','117595psqOBO','document'];a144_0x58ca=function(){return _0x585aaf;};return a144_0x58ca();}function zodErrorsToValidationResult(_0x50cb3e,_0x419f03){const _0x3abb42=a144_0x3850,_0x4f1198=flattenZodIssues(_0x50cb3e[_0x3abb42(0x156)]),_0x2b0779=_0x4f1198[_0x3abb42(0x179)](_0xea337=>{const _0x5e5997=_0x3abb42,_0x1640d8=formatZodPath(_0xea337['path']),_0xfb0257=mapZodIssueToCode(_0xea337,_0x1640d8),_0x4980c8=getLocationFromPath(_0x419f03[_0x5e5997(0x13e)],_0x419f03[_0x5e5997(0x18c)],_0xea337[_0x5e5997(0x141)][_0x5e5997(0x179)](_0x4fc03f=>typeof _0x4fc03f===_0x5e5997(0x181)?String(_0x4fc03f):_0x4fc03f));return{'level':'error','path':_0x1640d8,'code':_0xfb0257,'message':_0xea337['message'],..._0x4980c8&&{'location':_0x4980c8}};});return{'valid':![],'errors':_0x2b0779,'warnings':[]};}function a144_0x3850(_0x29c7e1,_0x1c1374){_0x29c7e1=_0x29c7e1-0x13e;const _0x58cae5=a144_0x58ca();let _0x3850b3=_0x58cae5[_0x29c7e1];return _0x3850b3;}function mapZodIssueToCode(_0x746daf,_0x53bd3e){const _0x3a8c5b=a144_0x3850,_0xc138c4=_0x746daf[_0x3a8c5b(0x146)]==='custom'?_0x746daf[_0x3a8c5b(0x17b)]:undefined;if(_0x53bd3e===_0x3a8c5b(0x158))return _0x3a8c5b(0x185);if(_0x53bd3e===_0x3a8c5b(0x170)||_0x53bd3e[_0x3a8c5b(0x178)](_0x3a8c5b(0x16a))){if(_0x746daf[_0x3a8c5b(0x146)]===_0x3a8c5b(0x145)){if(_0x53bd3e==='rule.type'||_0x53bd3e[_0x3a8c5b(0x148)](/\.conditions\[\d+\]\.type$/))return _0x3a8c5b(0x14b);}}if(_0x53bd3e[_0x3a8c5b(0x178)](_0x3a8c5b(0x140)))return _0x3a8c5b(0x163);if(_0x53bd3e[_0x3a8c5b(0x178)](_0x3a8c5b(0x166)))return _0x3a8c5b(0x18b);if(_0xc138c4?.[_0x3a8c5b(0x147)]===_0x3a8c5b(0x160))return'MISSING_BETWEEN_BOUNDS';if(_0xc138c4?.[_0x3a8c5b(0x147)]==='MISSING_TIME_UNIT')return _0x3a8c5b(0x17a);if(_0x53bd3e['endsWith'](_0x3a8c5b(0x167))||_0x53bd3e===_0x3a8c5b(0x14d))return _0x3a8c5b(0x189);if(_0x53bd3e[_0x3a8c5b(0x168)](_0x3a8c5b(0x153)))return _0x3a8c5b(0x15e);if(_0x53bd3e[_0x3a8c5b(0x178)](_0x3a8c5b(0x14a)))return _0x3a8c5b(0x161);return _0x3a8c5b(0x13f);}function runSemanticChecks(_0xfd4ff,_0xe2468b){const _0x5610ab=a144_0x3850,_0x5aa829=[];_0xfd4ff[_0x5610ab(0x15d)]&&_0x5aa829[_0x5610ab(0x15a)](...checkRule(_0xfd4ff[_0x5610ab(0x15d)],_0x5610ab(0x15d),_0xe2468b));const _0xde6904=_0x5aa829[_0x5610ab(0x18e)](_0x308012=>_0x308012[_0x5610ab(0x164)]===_0x5610ab(0x157)),_0x190bda=_0x5aa829[_0x5610ab(0x18e)](_0x390f99=>_0x390f99[_0x5610ab(0x164)]===_0x5610ab(0x16f));return{'valid':_0xde6904['length']===0x0,'errors':_0xde6904,'warnings':_0x190bda};}function checkRule(_0x2dc4c6,_0x190a97,_0x2cf18e){const _0x1be05c=a144_0x3850,_0x196662=[];if(_0x2dc4c6[_0x1be05c(0x14d)][_0x1be05c(0x144)]===0x0)return _0x196662[_0x1be05c(0x15a)]({'level':'error','path':_0x190a97+_0x1be05c(0x167),'code':_0x1be05c(0x165),'message':_0x1be05c(0x184),'location':getLocationFromPath(_0x2cf18e['document'],_0x2cf18e[_0x1be05c(0x18c)],pathToArray(_0x190a97+_0x1be05c(0x167)))}),_0x196662;return _0x196662[_0x1be05c(0x15a)](...checkConditions(_0x2dc4c6[_0x1be05c(0x14d)],_0x190a97,_0x2cf18e)),_0x196662;}function checkConditions(_0x35a78e,_0x4e928,_0x3f509a){const _0x18e173=a144_0x3850,_0x2c3811=[];for(let _0x50d0a7=0x0;_0x50d0a7<_0x35a78e['length'];_0x50d0a7++){const _0xd0c526=_0x35a78e[_0x50d0a7],_0x2d71d7=_0x4e928+_0x18e173(0x169)+_0x50d0a7+']';_0x2c3811[_0x18e173(0x15a)](...checkCondition(_0xd0c526,_0x2d71d7,_0x3f509a));}return _0x2c3811;}function checkCondition(_0x34e27a,_0xfa9937,_0x18a103){const _0x313d5e=a144_0x3850,_0x9e69fd=[];if(_0x34e27a[_0x313d5e(0x171)]===_0x313d5e(0x18d)||_0x34e27a[_0x313d5e(0x171)]==='Or')return _0x34e27a['conditions'][_0x313d5e(0x144)]===0x0?_0x9e69fd['push']({'level':_0x313d5e(0x157),'path':_0xfa9937+_0x313d5e(0x167),'code':_0x313d5e(0x165),'message':_0x34e27a[_0x313d5e(0x171)]+_0x313d5e(0x14e),'location':getLocationFromPath(_0x18a103[_0x313d5e(0x13e)],_0x18a103['source'],pathToArray(_0xfa9937+_0x313d5e(0x167)))}):_0x9e69fd[_0x313d5e(0x15a)]({'level':'error','path':_0xfa9937,'code':'NESTED_CONDITION_GROUP','message':_0x34e27a['type']+_0x313d5e(0x177)+_0x313d5e(0x175)+_0x313d5e(0x150),'location':getLocationFromPath(_0x18a103['document'],_0x18a103[_0x313d5e(0x18c)],pathToArray(_0xfa9937))}),_0x9e69fd;if(_0x34e27a[_0x313d5e(0x171)]===_0x313d5e(0x142)||_0x34e27a[_0x313d5e(0x171)]===_0x313d5e(0x143)){const _0x2ce2eb=_0x34e27a,_0x2b4ede=_0x2ce2eb[_0x313d5e(0x18c)],_0x30be2b=_0x2ce2eb[_0x313d5e(0x173)],_0x27b5ef=_0x2b4ede||_0x30be2b;(!_0x2ce2eb[_0x313d5e(0x17d)]||_0x2ce2eb[_0x313d5e(0x17d)]==='')&&(!_0x27b5ef&&_0x9e69fd['push']({'level':'error','path':_0xfa9937+_0x313d5e(0x176),'code':_0x313d5e(0x15f),'message':_0x313d5e(0x16c),'location':getLocationFromPath(_0x18a103[_0x313d5e(0x13e)],_0x18a103['source'],pathToArray(_0xfa9937+_0x313d5e(0x176)))}));_0x2ce2eb[_0x313d5e(0x18e)]&&_0x9e69fd[_0x313d5e(0x15a)](...checkRule(_0x2ce2eb[_0x313d5e(0x18e)],_0xfa9937+'.filter',_0x18a103));if(_0x2ce2eb[_0x313d5e(0x18c)]){const _0x212daa=_0x2ce2eb[_0x313d5e(0x17d)]&&_0x2ce2eb[_0x313d5e(0x17d)]!=='';_0x212daa&&!_0x2ce2eb[_0x313d5e(0x18e)]&&_0x9e69fd['push']({'level':_0x313d5e(0x157),'path':_0xfa9937+_0x313d5e(0x15b),'code':_0x313d5e(0x149),'message':_0x313d5e(0x182)+_0x2ce2eb['source']+_0x313d5e(0x174)+_0x2ce2eb[_0x313d5e(0x17d)]+'\x27\x20'+_0x313d5e(0x17c)+_0x313d5e(0x154)+_0x313d5e(0x17f),'location':getLocationFromPath(_0x18a103[_0x313d5e(0x13e)],_0x18a103['source'],pathToArray(_0xfa9937+_0x313d5e(0x15b)))}),_0x212daa&&_0x2ce2eb['filter']&&_0x9e69fd[_0x313d5e(0x15a)]({'level':'warning','path':_0xfa9937+_0x313d5e(0x176),'code':_0x313d5e(0x155),'message':'Attribute\x20\x27'+_0x2ce2eb['attribute']+_0x313d5e(0x151)+_0x313d5e(0x18a),'location':getLocationFromPath(_0x18a103[_0x313d5e(0x13e)],_0x18a103[_0x313d5e(0x18c)],pathToArray(_0xfa9937+_0x313d5e(0x176)))});}}return _0x9e69fd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2badb4,_0x39f078){const _0x1a48ee=a145_0x536d,_0x4e4b7b=_0x2badb4();while(!![]){try{const _0x5c6461=parseInt(_0x1a48ee(0x192))/0x1+parseInt(_0x1a48ee(0x199))/0x2*(parseInt(_0x1a48ee(0x18b))/0x3)+parseInt(_0x1a48ee(0x1b0))/0x4+-parseInt(_0x1a48ee(0x19c))/0x5*(parseInt(_0x1a48ee(0x19b))/0x6)+-parseInt(_0x1a48ee(0x19e))/0x7+-parseInt(_0x1a48ee(0x1a2))/0x8*(-parseInt(_0x1a48ee(0x1ba))/0x9)+-parseInt(_0x1a48ee(0x18c))/0xa*(parseInt(_0x1a48ee(0x1af))/0xb);if(_0x5c6461===_0x39f078)break;else _0x4e4b7b['push'](_0x4e4b7b['shift']());}catch(_0x435bd7){_0x4e4b7b['push'](_0x4e4b7b['shift']());}}}(a145_0x2f1b,0x7f9b4));import a145_0x17c8d9 from'path';function a145_0x2f1b(){const _0x4fb3e7=['segmentName','2712108dtXbSM','readFile','tdx.json','resourceType','8UQWsNC','File\x20not\x20found:\x20','file_not_found','basename','trim','message','directory','string','Not\x20a\x20YAML\x20file:\x20','File\x20not\x20found','isFile','error','join','16137PSpoXB','2845468BdXzgK','parent_segment','dirname','No\x20tdx.json\x20found\x20for\x20file:\x20','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','invalid_yaml','journey','extname','parentSegment','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','5310198UOwJmd','cwd','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','isScoped','stat','folderPath','root','102gnKALi','6110PJiDJO','type','no_config','parse','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','Parent\x20segment\x20not\x20specified','362814ViQuOn','replace','isDirectory','configDir','match','file','parent_name','11164OkDSoq','scopedFolderPath','6vjRYKm','237670UxTmQt'];a145_0x2f1b=function(){return _0x4fb3e7;};return a145_0x2f1b();}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(_0x7cfa9a){const _0x48c5f7=a145_0x536d;return _0x7cfa9a[_0x48c5f7(0x18d)]!=='error';}export function isScopedResolution(_0x45e958){const _0x46bd15=a145_0x536d;return _0x45e958[_0x46bd15(0x18d)]==='directory'||_0x45e958[_0x46bd15(0x18d)]==='file'||_0x45e958[_0x46bd15(0x18d)]==='context';}function a145_0x536d(_0x3f21ee,_0x35d51d){_0x3f21ee=_0x3f21ee-0x189;const _0x2f1b6c=a145_0x2f1b();let _0x536d41=_0x2f1b6c[_0x3f21ee];return _0x536d41;}export function getScopedDetails(_0x3b43e7){const _0xb4babf=a145_0x536d;if(isScopedResolution(_0x3b43e7))return{'isScoped':_0x3b43e7['isScoped'],'scopedFolderPath':_0x3b43e7[_0xb4babf(0x19a)]};return undefined;}async function findTdxConfigAsync(_0x2d9764,_0x2109e1){const _0x2f42f8=a145_0x536d;let _0x493a35=a145_0x17c8d9['resolve'](_0x2d9764);const _0x4f5bbb=a145_0x17c8d9['parse'](_0x493a35)[_0x2f42f8(0x18a)];while(_0x493a35!==_0x4f5bbb){const _0xff3e09=a145_0x17c8d9[_0x2f42f8(0x1ae)](_0x493a35,_0x2f42f8(0x1a0));if(await _0x2109e1['exists'](_0xff3e09))try{const _0xa8233a=await _0x2109e1[_0x2f42f8(0x19f)](_0xff3e09),_0x1816f4=JSON[_0x2f42f8(0x18f)](_0xa8233a);if(_0x1816f4[_0x2f42f8(0x1b1)]&&typeof _0x1816f4[_0x2f42f8(0x1b1)]===_0x2f42f8(0x1a9))return{'configPath':_0xff3e09,'configDir':_0x493a35,'parentSegment':_0x1816f4[_0x2f42f8(0x1b1)]};}catch{}_0x493a35=a145_0x17c8d9[_0x2f42f8(0x1b2)](_0x493a35);}return null;}function calculateScopedPath(_0xe3e94a,_0x38f578){const _0x138ba1=a145_0x536d,_0x4bf90c=a145_0x17c8d9['relative'](_0x38f578,_0xe3e94a),_0x210256=_0x4bf90c!==''&&_0x4bf90c!=='.'&&!_0x4bf90c['startsWith']('..');return{'isScoped':_0x210256,'scopedFolderPath':_0x210256?_0x4bf90c[_0x138ba1(0x193)](/\\/g,'/'):''};}export async function resolveTarget(_0x151d88){const _0x4efe03=a145_0x536d,{arg:_0x4c2468,contextParent:_0x2fa81f,cwd:cwd=process[_0x4efe03(0x1bb)](),fs:fs=nodeFileSystem}=_0x151d88;if(_0x4c2468&&isYamlFilePath(_0x4c2468))try{const _0x2d91f3=await resolveYamlFilePath(_0x4c2468,fs),_0xa7d27=a145_0x17c8d9['resolve'](_0x4c2468),_0x321f5b=a145_0x17c8d9[_0x4efe03(0x1b2)](_0xa7d27),_0xa592c0=await findTdxConfigAsync(_0x321f5b,fs);if(!_0xa592c0){if(_0x2fa81f){const _0x1bb21b=a145_0x17c8d9[_0x4efe03(0x1b2)](_0xa7d27);return{'type':'file','parentName':_0x2fa81f,'targetDir':_0x1bb21b,'configRoot':_0x1bb21b,'filePath':_0xa7d27,'resourceName':_0x2d91f3[_0x4efe03(0x19d)],'folderPath':_0x2d91f3[_0x4efe03(0x189)],'resourceType':_0x2d91f3[_0x4efe03(0x1a1)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4efe03(0x1ad),'errorCode':'no_config','message':_0x4efe03(0x1b3)+_0x4c2468,'arg':_0x4c2468,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}const _0x83eba6=calculateScopedPath(_0x321f5b,_0xa592c0[_0x4efe03(0x195)]);return{'type':_0x4efe03(0x197),'parentName':_0xa592c0['parentSegment'],'targetDir':_0xa592c0[_0x4efe03(0x195)],'configRoot':_0xa592c0[_0x4efe03(0x195)],'filePath':_0xa7d27,'resourceName':_0x2d91f3['segmentName'],'folderPath':_0x2d91f3['folderPath'],'resourceType':_0x2d91f3[_0x4efe03(0x1a1)],'isScoped':_0x83eba6[_0x4efe03(0x1bd)],'scopedFolderPath':_0x83eba6[_0x4efe03(0x19a)]};}catch(_0x4cb703){const _0x25e353=_0x4cb703 instanceof Error?_0x4cb703[_0x4efe03(0x1a7)]:String(_0x4cb703);if(_0x25e353['includes'](_0x4efe03(0x1ab)))return{'type':_0x4efe03(0x1ad),'errorCode':_0x4efe03(0x1a4),'message':_0x4efe03(0x1a3)+_0x4c2468,'arg':_0x4c2468};if(_0x25e353['includes']('No\x20tdx.json\x20found')){if(_0x2fa81f){const _0x5c9b5d=a145_0x17c8d9['resolve'](_0x4c2468);if(await fs['exists'](_0x5c9b5d)){const _0x340f49=a145_0x17c8d9[_0x4efe03(0x1b2)](_0x5c9b5d),_0x3bb6ca=await fs[_0x4efe03(0x19f)](_0x5c9b5d),_0x528636=_0x3bb6ca[_0x4efe03(0x196)](/^name:\s*["']?([^"'\n]+)["']?/m),_0xdc0fe1=_0x3bb6ca[_0x4efe03(0x196)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x3da213=_0x528636?_0x528636[0x1]['trim']():a145_0x17c8d9[_0x4efe03(0x1a5)](_0x4c2468,a145_0x17c8d9[_0x4efe03(0x1b7)](_0x4c2468)),_0x3c3d0d=_0xdc0fe1&&_0xdc0fe1[0x1][_0x4efe03(0x1a6)]()===_0x4efe03(0x1b6)?_0x4efe03(0x1b6):'segment';return{'type':_0x4efe03(0x197),'parentName':_0x2fa81f,'targetDir':_0x340f49,'configRoot':_0x340f49,'filePath':_0x5c9b5d,'resourceName':_0x3da213,'folderPath':'','resourceType':_0x3c3d0d,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0x4efe03(0x18e),'message':_0x4efe03(0x1b3)+_0x4c2468,'arg':_0x4c2468,'helpText':_0x4efe03(0x1b4)};}return{'type':_0x4efe03(0x1ad),'errorCode':_0x4efe03(0x1b5),'message':_0x25e353,'arg':_0x4c2468};}if(_0x4c2468){const _0x3abf06=a145_0x17c8d9['resolve'](cwd,_0x4c2468);let _0x524456=null;try{_0x524456=await fs[_0x4efe03(0x1be)](_0x3abf06);}catch{}if(_0x524456?.[_0x4efe03(0x194)]()){const _0x254aec=await findTdxConfigAsync(_0x3abf06,fs);if(_0x254aec){const _0x354dc8=calculateScopedPath(_0x3abf06,_0x254aec[_0x4efe03(0x195)]);return{'type':_0x4efe03(0x1a8),'parentName':_0x254aec[_0x4efe03(0x1b8)],'targetDir':_0x3abf06,'configRoot':_0x254aec[_0x4efe03(0x195)],'isScoped':_0x354dc8[_0x4efe03(0x1bd)],'scopedFolderPath':_0x354dc8[_0x4efe03(0x19a)]};}if(_0x2fa81f)return{'type':_0x4efe03(0x1a8),'parentName':_0x2fa81f,'targetDir':_0x3abf06,'configRoot':_0x3abf06,'isScoped':![],'scopedFolderPath':''};return{'type':_0x4efe03(0x1ad),'errorCode':_0x4efe03(0x18e),'message':_0x4efe03(0x190)+_0x4c2468,'arg':_0x4c2468,'helpText':_0x4efe03(0x1b4)};}if(_0x524456?.[_0x4efe03(0x1ac)]())return{'type':_0x4efe03(0x1ad),'errorCode':'invalid_yaml','message':_0x4efe03(0x1aa)+_0x4c2468,'arg':_0x4c2468,'helpText':_0x4efe03(0x1b9)};const _0x3cb12f=sanitizeFileName(_0x4c2468),_0x5ee12d=getSegmentRootDir(_0x3cb12f,cwd);return{'type':_0x4efe03(0x198),'parentName':_0x4c2468,'targetDir':_0x5ee12d,'configRoot':_0x5ee12d};}const _0x392c3c=await findTdxConfigAsync(cwd,fs);if(_0x392c3c){const _0x8cf023=calculateScopedPath(cwd,_0x392c3c[_0x4efe03(0x195)]);return{'type':'context','parentName':_0x392c3c[_0x4efe03(0x1b8)],'targetDir':cwd,'configRoot':_0x392c3c['configDir'],'isScoped':_0x8cf023[_0x4efe03(0x1bd)],'scopedFolderPath':_0x8cf023['scopedFolderPath']};}if(_0x2fa81f){const _0x482d3f=sanitizeFileName(_0x2fa81f),_0x88339e=getSegmentRootDir(_0x482d3f,cwd);return{'type':'context','parentName':_0x2fa81f,'targetDir':_0x88339e,'configRoot':_0x88339e,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':'no_parent','message':_0x4efe03(0x191),'helpText':_0x4efe03(0x1bc)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x564c64=a146_0x5e60;(function(_0x56ecf4,_0x398f0a){const _0x414ac5=a146_0x5e60,_0xe53207=_0x56ecf4();while(!![]){try{const _0x590cff=-parseInt(_0x414ac5(0x17c))/0x1+parseInt(_0x414ac5(0x177))/0x2*(-parseInt(_0x414ac5(0x167))/0x3)+-parseInt(_0x414ac5(0x173))/0x4*(-parseInt(_0x414ac5(0x16a))/0x5)+parseInt(_0x414ac5(0x17b))/0x6+-parseInt(_0x414ac5(0x16c))/0x7*(-parseInt(_0x414ac5(0x16f))/0x8)+-parseInt(_0x414ac5(0x179))/0x9+parseInt(_0x414ac5(0x180))/0xa*(parseInt(_0x414ac5(0x181))/0xb);if(_0x590cff===_0x398f0a)break;else _0xe53207['push'](_0xe53207['shift']());}catch(_0x17508a){_0xe53207['push'](_0xe53207['shift']());}}}(a146_0x5b89,0x37610));import{existsSync,readFileSync}from'fs';import a146_0x390dd from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a146_0x564c64(0x175);export function findTdxConfigPath(_0x35c738=process[a146_0x564c64(0x171)]()){const _0x36faab=a146_0x564c64;let _0x3e73db=a146_0x390dd[_0x36faab(0x174)](_0x35c738);const _0x1fd8d7=a146_0x390dd[_0x36faab(0x17f)](_0x3e73db)[_0x36faab(0x166)];while(_0x3e73db!==_0x1fd8d7){const _0x2bbda3=a146_0x390dd[_0x36faab(0x178)](_0x3e73db,TDX_CONFIG_FILE);if(existsSync(_0x2bbda3))return _0x2bbda3;_0x3e73db=a146_0x390dd[_0x36faab(0x16b)](_0x3e73db);}return null;}export function loadTdxConfig(_0x45d482){const _0x33c571=a146_0x564c64,_0x203cfe=readFileSync(_0x45d482,_0x33c571(0x17d));let _0x1bc323;try{_0x1bc323=JSON[_0x33c571(0x17f)](_0x203cfe);}catch{throw new Error(_0x33c571(0x17a)+_0x45d482);}if(!_0x1bc323||typeof _0x1bc323!=='object')throw new Error(_0x33c571(0x17e));const _0x1f5f47=_0x1bc323,_0x1be670=_0x1f5f47['parent_segment']&&typeof _0x1f5f47[_0x33c571(0x165)]==='string',_0x2360db=_0x1f5f47['engage_workspace']&&typeof _0x1f5f47[_0x33c571(0x176)]===_0x33c571(0x16d);if(!_0x1be670&&!_0x2360db)throw new Error(_0x33c571(0x170));const _0x3c41f0={};return _0x1be670&&(_0x3c41f0[_0x33c571(0x165)]=_0x1f5f47['parent_segment']),_0x2360db&&(_0x3c41f0['engage_workspace']=_0x1f5f47['engage_workspace']),_0x3c41f0;}export function findTdxConfig(_0x1eb377=process['cwd']()){const _0x390cc1=a146_0x564c64,_0x28d09b=findTdxConfigPath(_0x1eb377);if(!_0x28d09b)throw new Error(_0x390cc1(0x16e));const _0x367099=loadTdxConfig(_0x28d09b),_0x1932b0=a146_0x390dd[_0x390cc1(0x16b)](_0x28d09b);return{'config':_0x367099,'configPath':_0x28d09b,'configDir':_0x1932b0};}export function tryFindTdxConfig(_0x17c1e2){try{return findTdxConfig(_0x17c1e2);}catch{return null;}}export function getSegmentRootDir(_0x5b1e32,_0x795a92=process[a146_0x564c64(0x171)]()){return a146_0x390dd['join'](_0x795a92,SEGMENTS_DIR,_0x5b1e32);}export function getTdxConfigPath(_0x13fc09,_0x5ced67=process['cwd']()){const _0x1ec0da=a146_0x564c64;return a146_0x390dd[_0x1ec0da(0x178)](getSegmentRootDir(_0x13fc09,_0x5ced67),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x278d68,_0x1a342b){const _0x522c10=a146_0x564c64,_0x41dc71=a146_0x390dd[_0x522c10(0x174)](_0x278d68),_0x361d56=a146_0x390dd[_0x522c10(0x169)](_0x1a342b,_0x41dc71);if(_0x361d56[_0x522c10(0x172)]('..'))return'';return _0x361d56;}function a146_0x5e60(_0x47057f,_0x290dd1){_0x47057f=_0x47057f-0x165;const _0x5b8987=a146_0x5b89();let _0x5e6007=_0x5b8987[_0x47057f];return _0x5e6007;}export function localPathToTdFolderPath(_0x390f2d){const _0x23f550=a146_0x390dd['dirname'](_0x390f2d);if(_0x23f550==='.'||_0x23f550==='')return'';return _0x23f550['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x4fc33f,_0x788d7){const _0x350836=a146_0x564c64;if(!_0x4fc33f)return _0x788d7;return a146_0x390dd[_0x350836(0x178)](_0x788d7,_0x4fc33f);}export function createTdxConfigContent(_0x299288){const _0x4aeef=a146_0x564c64,_0x33e524={'parent_segment':_0x299288};return JSON[_0x4aeef(0x168)](_0x33e524,null,0x2)+'\x0a';}function a146_0x5b89(){const _0x1cc380=['338946uPIvJv','utf-8','Invalid\x20tdx.json:\x20expected\x20object','parse','2491100vSiFwb','22wygetU','parent_segment','root','3fVRMlg','stringify','relative','5GaUuiv','dirname','1439354JjBHEM','string','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','8JClxpj','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','cwd','startsWith','252476zNTfFc','resolve','segments','engage_workspace','532744OrJNFl','join','2843676epsvBs','Invalid\x20JSON\x20in\x20','2286918LLzPPH'];a146_0x5b89=function(){return _0x1cc380;};return a146_0x5b89();}export function createEngageTdxConfigContent(_0x33dfbc){const _0x2b695f=a146_0x564c64,_0x497c48={'engage_workspace':_0x33dfbc};return JSON[_0x2b695f(0x168)](_0x497c48,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x35fdc7=a147_0xed24;(function(_0x136b4f,_0x3eb570){const _0x5871db=a147_0xed24,_0x1ef835=_0x136b4f();while(!![]){try{const _0xadbf50=-parseInt(_0x5871db(0x197))/0x1+parseInt(_0x5871db(0x192))/0x2+parseInt(_0x5871db(0x17d))/0x3+-parseInt(_0x5871db(0x18d))/0x4+-parseInt(_0x5871db(0x180))/0x5+-parseInt(_0x5871db(0x196))/0x6*(-parseInt(_0x5871db(0x19d))/0x7)+-parseInt(_0x5871db(0x1a1))/0x8;if(_0xadbf50===_0x3eb570)break;else _0x1ef835['push'](_0x1ef835['shift']());}catch(_0x1cc92e){_0x1ef835['push'](_0x1ef835['shift']());}}}(a147_0x1b99,0x3b330));import{z}from'zod';export const ScheduleTypeSchema=z[a147_0x35fdc7(0x18c)](['none',a147_0x35fdc7(0x1a0),a147_0x35fdc7(0x182),a147_0x35fdc7(0x194),a147_0x35fdc7(0x18e),a147_0x35fdc7(0x191),a147_0x35fdc7(0x17e)]);export const RepeatUnitSchema=z['enum'](['minute',a147_0x35fdc7(0x184),a147_0x35fdc7(0x18f),'week',a147_0x35fdc7(0x181),a147_0x35fdc7(0x199),a147_0x35fdc7(0x1a2)]);export const ScheduleDefSchema=z[a147_0x35fdc7(0x18a)]({'type':ScheduleTypeSchema[a147_0x35fdc7(0x186)](),'repeat_unit':RepeatUnitSchema[a147_0x35fdc7(0x186)](),'repeat_frequency':z[a147_0x35fdc7(0x19e)]()[a147_0x35fdc7(0x186)](),'repeat_sub_frequency':z[a147_0x35fdc7(0x18b)](z['number']())[a147_0x35fdc7(0x186)](),'start_at':z[a147_0x35fdc7(0x195)]()[a147_0x35fdc7(0x193)]()[a147_0x35fdc7(0x186)](),'end_on':z[a147_0x35fdc7(0x195)]()[a147_0x35fdc7(0x193)]()[a147_0x35fdc7(0x186)](),'timezone':z['string']()[a147_0x35fdc7(0x186)]()});function a147_0xed24(_0x3696cf,_0x4d484f){_0x3696cf=_0x3696cf-0x17d;const _0x1b99ed=a147_0x1b99();let _0xed2493=_0x1b99ed[_0x3696cf];return _0xed2493;}export const NotificationDefSchema=z['object']({'notify_on':z['array'](z[a147_0x35fdc7(0x18c)](['onSuccess',a147_0x35fdc7(0x17f)]))[a147_0x35fdc7(0x186)](),'email_recipients':z[a147_0x35fdc7(0x18b)](z[a147_0x35fdc7(0x195)]())[a147_0x35fdc7(0x186)]()});export const ActivationColumnDefSchema=z[a147_0x35fdc7(0x189)]([z[a147_0x35fdc7(0x195)](),z[a147_0x35fdc7(0x18a)]({'name':z['string'](),'type':z[a147_0x35fdc7(0x195)]()['optional'](),'visibility':z[a147_0x35fdc7(0x18c)](['clear',a147_0x35fdc7(0x187)])['optional']()})]);export const ActivationBehaviorDefSchema=z[a147_0x35fdc7(0x18a)]({'columns':z[a147_0x35fdc7(0x18b)](z[a147_0x35fdc7(0x18a)]({'name':z[a147_0x35fdc7(0x195)](),'type':z['string']()['optional'](),'visibility':z[a147_0x35fdc7(0x18c)]([a147_0x35fdc7(0x188),a147_0x35fdc7(0x187)])['optional']()}))[a147_0x35fdc7(0x186)](),'behavior_table':z[a147_0x35fdc7(0x195)]()[a147_0x35fdc7(0x186)](),'join_row':z[a147_0x35fdc7(0x19e)]()['nullable']()[a147_0x35fdc7(0x186)](),'join_strategy':z[a147_0x35fdc7(0x18c)]([a147_0x35fdc7(0x190),'First','Last','Top-N'])['optional'](),'formatting':z[a147_0x35fdc7(0x18c)](['rows',a147_0x35fdc7(0x185)])[a147_0x35fdc7(0x186)](),'order_by':z[a147_0x35fdc7(0x18b)](z[a147_0x35fdc7(0x18a)]({'key':z[a147_0x35fdc7(0x195)](),'order':z[a147_0x35fdc7(0x18c)]([a147_0x35fdc7(0x19c),'desc'])}))[a147_0x35fdc7(0x186)]()});function a147_0x1b99(){const _0x24a6bb=['345943niHhej','Activation\x20name\x20is\x20required','once','record','min','asc','14mDvNkq','number','unknown','hourly','3180536vpQGnW','none','1438824ruFUdM','minutes_interval','onFailure','608045tnitbf','month','daily','Connection\x20name\x20is\x20required','hour','cols','optional','masked','clear','union','object','array','enum','141300lBQSaz','monthly','day','All','cron','654420RorKtt','nullable','weekly','string','1008318SocVjE'];a147_0x1b99=function(){return _0x24a6bb;};return a147_0x1b99();}export const ActivationDefSchema=z['object']({'name':z[a147_0x35fdc7(0x195)]()[a147_0x35fdc7(0x19b)](0x1,a147_0x35fdc7(0x198)),'description':z[a147_0x35fdc7(0x195)]()[a147_0x35fdc7(0x186)](),'connection':z['string']()[a147_0x35fdc7(0x19b)](0x1,a147_0x35fdc7(0x183)),'all_columns':z['boolean']()['optional'](),'columns':z[a147_0x35fdc7(0x18b)](ActivationColumnDefSchema)[a147_0x35fdc7(0x186)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a147_0x35fdc7(0x19a)](z[a147_0x35fdc7(0x195)](),z[a147_0x35fdc7(0x19f)]())[a147_0x35fdc7(0x186)](),'activation_template_id':z['string']()['nullable']()['optional'](),'behavior':ActivationBehaviorDefSchema[a147_0x35fdc7(0x193)]()[a147_0x35fdc7(0x186)](),'run_after_journey_refresh':z['boolean']()[a147_0x35fdc7(0x186)]()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a148_0x3649(){var _0x3ef08c=['9aBBaIk','213DwecJI','1943611JnohAp','4118892ddFinO','11208WMTwII','8053470qrarCd','745060POojBx','7106505IswmrO','13364184JqbdQl'];a148_0x3649=function(){return _0x3ef08c;};return a148_0x3649();}(function(_0x5d68d2,_0x4cca54){var _0x13e039=a148_0x4db9,_0x4b8414=_0x5d68d2();while(!![]){try{var _0x44727d=-parseInt(_0x13e039(0xa7))/0x1+-parseInt(_0x13e039(0xa9))/0x2*(-parseInt(_0x13e039(0xa6))/0x3)+parseInt(_0x13e039(0xa8))/0x4+parseInt(_0x13e039(0xa2))/0x5+-parseInt(_0x13e039(0xaa))/0x6+parseInt(_0x13e039(0xa3))/0x7+parseInt(_0x13e039(0xa4))/0x8*(parseInt(_0x13e039(0xa5))/0x9);if(_0x44727d===_0x4cca54)break;else _0x4b8414['push'](_0x4b8414['shift']());}catch(_0x37d8e8){_0x4b8414['push'](_0x4b8414['shift']());}}}(a148_0x3649,0xee675));function a148_0x4db9(_0x7d17b6,_0x18ca9d){_0x7d17b6=_0x7d17b6-0xa2;var _0x36498d=a148_0x3649();var _0x4db92c=_0x36498d[_0x7d17b6];return _0x4db92c;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x28d9ab=a149_0x4b48;(function(_0x44af7d,_0x3ae31b){const _0x20c3d2=a149_0x4b48,_0x52ec9f=_0x44af7d();while(!![]){try{const _0x24629c=-parseInt(_0x20c3d2(0x1bf))/0x1+-parseInt(_0x20c3d2(0x1b9))/0x2*(-parseInt(_0x20c3d2(0x1c0))/0x3)+parseInt(_0x20c3d2(0x1b8))/0x4+parseInt(_0x20c3d2(0x1c1))/0x5+-parseInt(_0x20c3d2(0x1b4))/0x6*(parseInt(_0x20c3d2(0x1c4))/0x7)+parseInt(_0x20c3d2(0x1b5))/0x8*(parseInt(_0x20c3d2(0x1d0))/0x9)+parseInt(_0x20c3d2(0x1b1))/0xa;if(_0x24629c===_0x3ae31b)break;else _0x52ec9f['push'](_0x52ec9f['shift']());}catch(_0x5160f1){_0x52ec9f['push'](_0x52ec9f['shift']());}}}(a149_0x40e6,0xe043e));function a149_0x40e6(){const _0x301ab1=['3928149obxCHH','1545420uPMtbR','filter','isArray','7EpUURk','simulation','literal','ab_test','reentry_unless_goal_achieved','length','type','array','enum','week','jump','wait','342afWOGc','optional','discriminatedUnion','lazy','day','activation','passthrough','number','object','decision_point','end','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','draft','9322370syuweE','min','boolean','9464550GTrwMn','36056RgVYYK','record','journey','2972576gSighE','2yXnDZF','Journey\x20name\x20is\x20required','string','launched','no_reentry','merge','969099GooIHJ'];a149_0x40e6=function(){return _0x301ab1;};return a149_0x40e6();}import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a149_0x28d9ab(0x1cc)]([a149_0x28d9ab(0x1dc),a149_0x28d9ab(0x1c5),a149_0x28d9ab(0x1bc)]);export const ReentryModeTypeSchema=z[a149_0x28d9ab(0x1cc)]([a149_0x28d9ab(0x1bd),a149_0x28d9ab(0x1c8),'reentry_always']);function a149_0x4b48(_0x271285,_0x182842){_0x271285=_0x271285-0x1b1;const _0x40e677=a149_0x40e6();let _0x4b48ae=_0x40e677[_0x271285];return _0x4b48ae;}export const WaitUnitTypeSchema=z[a149_0x28d9ab(0x1cc)]([a149_0x28d9ab(0x1d4),a149_0x28d9ab(0x1cd)]);export const StepTypeValueSchema=z[a149_0x28d9ab(0x1cc)]([a149_0x28d9ab(0x1cf),a149_0x28d9ab(0x1d5),a149_0x28d9ab(0x1d9),a149_0x28d9ab(0x1c7),a149_0x28d9ab(0x1be),a149_0x28d9ab(0x1ce),a149_0x28d9ab(0x1da)]);export const EmbeddedSegmentDefSchema=z[a149_0x28d9ab(0x1d8)]({'description':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a149_0x28d9ab(0x1d8)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)]()});export const CriteriaDefSchema=z[a149_0x28d9ab(0x1d8)]({'name':z[a149_0x28d9ab(0x1bb)](),'description':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'segment':z[a149_0x28d9ab(0x1bb)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a149_0x28d9ab(0x1d8)]({'duration':z[a149_0x28d9ab(0x1d7)](),'unit':WaitUnitTypeSchema,'next':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)]()}),WaitConditionDefSchema=z[a149_0x28d9ab(0x1d8)]({'segment':z[a149_0x28d9ab(0x1bb)](),'next':z[a149_0x28d9ab(0x1bb)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a149_0x28d9ab(0x1d1)]()}),WaitStepParamsDefSchema=z[a149_0x28d9ab(0x1d8)]({'duration':z['number']()[a149_0x28d9ab(0x1d1)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'condition':WaitConditionDefSchema[a149_0x28d9ab(0x1d1)](),'days_of_week':z[a149_0x28d9ab(0x1cb)](z[a149_0x28d9ab(0x1bb)]())[a149_0x28d9ab(0x1d1)]()}),StepBaseFields={'name':z[a149_0x28d9ab(0x1bb)](),'uuid':z['string']()[a149_0x28d9ab(0x1d1)](),'next':z[a149_0x28d9ab(0x1bb)]()['optional']()},WaitStepDefSchema=z[a149_0x28d9ab(0x1d8)]({...StepBaseFields,'type':z['literal'](a149_0x28d9ab(0x1cf)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a149_0x28d9ab(0x1d8)]({'activation':z[a149_0x28d9ab(0x1bb)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a149_0x28d9ab(0x1c6)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a149_0x28d9ab(0x1d8)]({'name':z[a149_0x28d9ab(0x1bb)](),'segment':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'segment_id':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'excluded':z['boolean']()['optional'](),'next':z['string']()[a149_0x28d9ab(0x1d1)]()}),DecisionPointStepParamsDefSchema=z[a149_0x28d9ab(0x1d8)]({'branches':z[a149_0x28d9ab(0x1cb)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a149_0x28d9ab(0x1d8)]({...StepBaseFields,'type':z[a149_0x28d9ab(0x1c6)](a149_0x28d9ab(0x1d9)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a149_0x28d9ab(0x1d8)]({'id':z[a149_0x28d9ab(0x1bb)]()['optional'](),'name':z[a149_0x28d9ab(0x1bb)](),'percentage':z[a149_0x28d9ab(0x1d7)](),'next':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)]()}),AbTestStepParamsDefSchema=z[a149_0x28d9ab(0x1d8)]({'variants':z[a149_0x28d9ab(0x1cb)](AbTestVariantDefSchema),'unique_id':z['string']()[a149_0x28d9ab(0x1d1)](),'customized_split':z[a149_0x28d9ab(0x1b3)]()[a149_0x28d9ab(0x1d1)]()}),AbTestStepDefSchema=z[a149_0x28d9ab(0x1d8)]({...StepBaseFields,'type':z[a149_0x28d9ab(0x1c6)](a149_0x28d9ab(0x1c7)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a149_0x28d9ab(0x1d8)]({...StepBaseFields,'type':z[a149_0x28d9ab(0x1c6)](a149_0x28d9ab(0x1be))}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a149_0x28d9ab(0x1d8)]({...StepBaseFields,'type':z['literal'](a149_0x28d9ab(0x1ce)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a149_0x28d9ab(0x1d8)]({...StepBaseFields,'type':z['literal']('end')})[a149_0x28d9ab(0x1d6)]();export const StepDefSchema=z[a149_0x28d9ab(0x1d2)](a149_0x28d9ab(0x1ca),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a149_0x28d9ab(0x1bb)](),'description':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'id':z[a149_0x28d9ab(0x1bb)]()['optional'](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a149_0x28d9ab(0x1cb)](CriteriaDefSchema)[a149_0x28d9ab(0x1d1)](),'milestone':CriteriaDefSchema[a149_0x28d9ab(0x1d1)](),'root_step':z[a149_0x28d9ab(0x1bb)]()['optional'](),'steps':z[a149_0x28d9ab(0x1cb)](StepDefSchema)[a149_0x28d9ab(0x1d1)]()});export const JourneyEntryDefSchema=z[a149_0x28d9ab(0x1d8)]({'name':z['string']()['optional'](),'version':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'state':JourneyStateTypeSchema[a149_0x28d9ab(0x1d1)](),'latest':z[a149_0x28d9ab(0x1b3)]()['optional'](),'stages':z[a149_0x28d9ab(0x1cb)](StageDefSchema),'id':z['string']()[a149_0x28d9ab(0x1d1)](),'version_number':z[a149_0x28d9ab(0x1d7)]()[a149_0x28d9ab(0x1d1)](),'goal':CriteriaDefSchema[a149_0x28d9ab(0x1d1)](),'reentry':ReentryModeTypeSchema[a149_0x28d9ab(0x1d1)]()});export const JourneyDefSchema=z[a149_0x28d9ab(0x1d3)](()=>z['object']({'type':z[a149_0x28d9ab(0x1c6)](a149_0x28d9ab(0x1b7)),'name':z['string']()[a149_0x28d9ab(0x1b2)](0x1,a149_0x28d9ab(0x1ba)),'description':z['string']()[a149_0x28d9ab(0x1d1)](),'bundle_id':z['string']()[a149_0x28d9ab(0x1d1)](),'bundle_name':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'folder_id':z[a149_0x28d9ab(0x1bb)]()['optional'](),'reentry':ReentryModeTypeSchema[a149_0x28d9ab(0x1d1)](),'allow_reentry':z[a149_0x28d9ab(0x1b3)]()[a149_0x28d9ab(0x1d1)](),'goal':CriteriaDefSchema[a149_0x28d9ab(0x1d1)](),'id':z[a149_0x28d9ab(0x1bb)]()['optional'](),'version':z[a149_0x28d9ab(0x1bb)]()[a149_0x28d9ab(0x1d1)](),'version_number':z['number']()[a149_0x28d9ab(0x1d1)](),'stages':z[a149_0x28d9ab(0x1cb)](StageDefSchema)[a149_0x28d9ab(0x1d1)](),'versions':z[a149_0x28d9ab(0x1cb)](JourneyEntryDefSchema)[a149_0x28d9ab(0x1d1)](),'journeys':z['array'](JourneyEntryDefSchema)[a149_0x28d9ab(0x1d1)](),'segments':z[a149_0x28d9ab(0x1b6)](z[a149_0x28d9ab(0x1bb)](),EmbeddedSegmentDefSchema)[a149_0x28d9ab(0x1d1)](),'activations':z[a149_0x28d9ab(0x1b6)](z[a149_0x28d9ab(0x1bb)](),ActivationDefSchema)[a149_0x28d9ab(0x1d1)]()})['refine'](_0x2d4904=>{const _0x5d7b70=a149_0x28d9ab,_0xf84196=[_0x2d4904['journeys'],_0x2d4904['stages'],_0x2d4904['versions']][_0x5d7b70(0x1c2)](_0x51e68a=>Array[_0x5d7b70(0x1c3)](_0x51e68a)&&_0x51e68a[_0x5d7b70(0x1c9)]>0x0)[_0x5d7b70(0x1c9)];return _0xf84196===0x1;},{'message':a149_0x28d9ab(0x1db)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cdbca,_0xfa3c79){var _0x4bd7bb=a151_0x27bc,_0xc29e15=_0x4cdbca();while(!![]){try{var _0x2ea3ad=parseInt(_0x4bd7bb(0xf1))/0x1*(parseInt(_0x4bd7bb(0xf7))/0x2)+parseInt(_0x4bd7bb(0xf2))/0x3+-parseInt(_0x4bd7bb(0xf4))/0x4+-parseInt(_0x4bd7bb(0xf8))/0x5*(parseInt(_0x4bd7bb(0xf9))/0x6)+-parseInt(_0x4bd7bb(0xf3))/0x7*(-parseInt(_0x4bd7bb(0xfa))/0x8)+-parseInt(_0x4bd7bb(0xf5))/0x9+parseInt(_0x4bd7bb(0xf6))/0xa;if(_0x2ea3ad===_0xfa3c79)break;else _0xc29e15['push'](_0xc29e15['shift']());}catch(_0x3affed){_0xc29e15['push'](_0xc29e15['shift']());}}}(a151_0x47ab,0x2c568));function a151_0x47ab(){var _0x3dd6bd=['114KiklXw','2062024FymiOr','36386rGnqKv','838770TcGsqO','7iJbsRu','815752TnRiRO','1139157qwhgdF','255580ihwBdn','10iKZSwj','61240CGuIYb'];a151_0x47ab=function(){return _0x3dd6bd;};return a151_0x47ab();}function a151_0x27bc(_0x383c62,_0xba568a){_0x383c62=_0x383c62-0xf1;var _0x47ab80=a151_0x47ab();var _0x27bc08=_0x47ab80[_0x383c62];return _0x27bc08;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a152_0x1fa0(){const _0x18977f=['max','Segment\x20name\x20is\x20required','56OAcmGB','object','First','exclude','Behavior','value','timestamp','TimeRange','193761bFtDHN','segment','Column','1514410YRsaFi','\x27\x20requires\x20a\x20time\x20unit','IsNull','column','hour','LessEqual','245135iwHEWx','TimeWithinPast','TimeWithinNext','has','MISSING_BETWEEN_BOUNDS','TimeRange\x20operator\x20requires\x20\x27duration\x27','literal','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Max','array','all','duration','4mkENPG','string','number','Sum','73162BXLpSZ','any','enum','type','from','365031Zrsbcx','32358PCHxFJ','optional','min','Contain','batch','5afATAc','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Min','year','superRefine','Segment\x20reference\x20must\x20not\x20be\x20empty','Equal','operator','boolean','TimeRange\x20operator\x20requires\x20\x27from\x27','5719417awPYqQ','addIssue','custom','553NDSpZP','Less','And','Average','\x27\x20requires\x20a\x20value','Operator\x20\x27','record','Count','Regexp','Value','second','discriminatedUnion','realtime','union','EndWith','unit','lazy','CountDistinct'];a152_0x1fa0=function(){return _0x18977f;};return a152_0x1fa0();}const a152_0x102aa1=a152_0x5553;(function(_0x4ec431,_0x48a3fa){const _0x5396ff=a152_0x5553,_0x5c0e75=_0x4ec431();while(!![]){try{const _0x5c7832=parseInt(_0x5396ff(0xe3))/0x1*(parseInt(_0x5396ff(0xd8))/0x2)+-parseInt(_0x5396ff(0xbf))/0x3*(-parseInt(_0x5396ff(0xd4))/0x4)+-parseInt(_0x5396ff(0xc8))/0x5+-parseInt(_0x5396ff(0xde))/0x6*(-parseInt(_0x5396ff(0xa3))/0x7)+parseInt(_0x5396ff(0xb7))/0x8*(parseInt(_0x5396ff(0xdd))/0x9)+-parseInt(_0x5396ff(0xc2))/0xa+-parseInt(_0x5396ff(0xa0))/0xb;if(_0x5c7832===_0x48a3fa)break;else _0x5c0e75['push'](_0x5c0e75['shift']());}catch(_0x24606b){_0x5c0e75['push'](_0x5c0e75['shift']());}}}(a152_0x1fa0,0x39ded));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a152_0x102aa1(0x9c),'Greater',a152_0x102aa1(0xa4),'GreaterEqual','LessEqual','In','Between',a152_0x102aa1(0xab),a152_0x102aa1(0xc4),a152_0x102aa1(0xc9),a152_0x102aa1(0xca),a152_0x102aa1(0xe1),'StartWith',a152_0x102aa1(0xb1),a152_0x102aa1(0xbe)]);export const TimeUnitSchema=z[a152_0x102aa1(0xda)]([a152_0x102aa1(0xad),'minute',a152_0x102aa1(0xc6),'day','week','month',a152_0x102aa1(0xe6)]);export const AggregationTypeSchema=z[a152_0x102aa1(0xda)]([a152_0x102aa1(0xaa),a152_0x102aa1(0xd7),a152_0x102aa1(0xa6),a152_0x102aa1(0xe5),a152_0x102aa1(0xd0),a152_0x102aa1(0xb4),a152_0x102aa1(0xb9),'Last']);const TemporalValueSchema=z[a152_0x102aa1(0xb0)]([z[a152_0x102aa1(0xb8)]({'timestamp':z[a152_0x102aa1(0xd5)]()}),z[a152_0x102aa1(0xb8)]({'last':z[a152_0x102aa1(0xb0)]([z['number'](),z[a152_0x102aa1(0xa9)](z['string'](),z[a152_0x102aa1(0xd6)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a152_0x102aa1(0xb0)]([z[a152_0x102aa1(0xd5)](),z[a152_0x102aa1(0xd6)](),z['boolean'](),TemporalValueSchema,z[a152_0x102aa1(0xd1)](z[a152_0x102aa1(0xb0)]([z[a152_0x102aa1(0xd5)](),z[a152_0x102aa1(0xd6)](),z[a152_0x102aa1(0x9e)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0x102aa1(0x9c),'Greater','GreaterEqual',a152_0x102aa1(0xa4),a152_0x102aa1(0xc7),'In',a152_0x102aa1(0xe1),'StartWith',a152_0x102aa1(0xb1),a152_0x102aa1(0xab),a152_0x102aa1(0xc9),a152_0x102aa1(0xca)]),OPERATORS_REQUIRING_UNIT=new Set([a152_0x102aa1(0xc9),a152_0x102aa1(0xca)]);export const OperatorDefSchema=z[a152_0x102aa1(0xb8)]({'type':OperatorTypeSchema,'not':z[a152_0x102aa1(0x9e)]()['optional'](),'value':OperatorValueSchema[a152_0x102aa1(0xdf)](),'min':z[a152_0x102aa1(0xb0)]([z['number'](),z[a152_0x102aa1(0xd5)](),TemporalValueSchema])[a152_0x102aa1(0xdf)](),'max':z[a152_0x102aa1(0xb0)]([z['number'](),z['string'](),TemporalValueSchema])[a152_0x102aa1(0xdf)](),'unit':TimeUnitSchema['optional'](),'duration':z[a152_0x102aa1(0xb8)]({'day':z['number']()[a152_0x102aa1(0xdf)](),'week':z['number']()[a152_0x102aa1(0xdf)](),'month':z['number']()['optional'](),'year':z['number']()[a152_0x102aa1(0xdf)](),'hour':z[a152_0x102aa1(0xd6)]()[a152_0x102aa1(0xdf)](),'minute':z[a152_0x102aa1(0xd6)]()[a152_0x102aa1(0xdf)](),'second':z[a152_0x102aa1(0xd6)]()[a152_0x102aa1(0xdf)]()})[a152_0x102aa1(0xdf)](),'from':z[a152_0x102aa1(0xb8)]({'last':z[a152_0x102aa1(0xb0)]([z[a152_0x102aa1(0xd6)](),z[a152_0x102aa1(0xd5)]()]),'unit':TimeUnitSchema})[a152_0x102aa1(0xdf)](),'reverse':z[a152_0x102aa1(0x9e)]()[a152_0x102aa1(0xdf)]()})[a152_0x102aa1(0xe7)]((_0x93b9a6,_0x470071)=>{const _0x3ae4f3=a152_0x102aa1;OPERATORS_REQUIRING_VALUE[_0x3ae4f3(0xcb)](_0x93b9a6[_0x3ae4f3(0xdb)])&&(_0x93b9a6[_0x3ae4f3(0xbc)]===undefined||_0x93b9a6[_0x3ae4f3(0xbc)]===null)&&_0x470071[_0x3ae4f3(0xa1)]({'code':'custom','message':_0x3ae4f3(0xa8)+_0x93b9a6[_0x3ae4f3(0xdb)]+_0x3ae4f3(0xa7),'path':[_0x3ae4f3(0xbc)]}),_0x93b9a6[_0x3ae4f3(0xdb)]==='Between'&&_0x93b9a6[_0x3ae4f3(0xe0)]===undefined&&_0x93b9a6[_0x3ae4f3(0xb5)]===undefined&&_0x470071[_0x3ae4f3(0xa1)]({'code':_0x3ae4f3(0xa2),'message':_0x3ae4f3(0xe4),'params':{'validationCode':_0x3ae4f3(0xcc)}}),OPERATORS_REQUIRING_UNIT[_0x3ae4f3(0xcb)](_0x93b9a6['type'])&&_0x93b9a6[_0x3ae4f3(0xbc)]!==undefined&&!_0x93b9a6[_0x3ae4f3(0xb2)]&&_0x470071[_0x3ae4f3(0xa1)]({'code':'custom','message':'Operator\x20\x27'+_0x93b9a6[_0x3ae4f3(0xdb)]+_0x3ae4f3(0xc3),'path':[_0x3ae4f3(0xb2)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x93b9a6[_0x3ae4f3(0xdb)]===_0x3ae4f3(0xbe)&&(!_0x93b9a6[_0x3ae4f3(0xd3)]&&_0x470071[_0x3ae4f3(0xa1)]({'code':_0x3ae4f3(0xa2),'message':_0x3ae4f3(0xcd),'path':[_0x3ae4f3(0xd3)]}),!_0x93b9a6[_0x3ae4f3(0xdc)]&&_0x470071[_0x3ae4f3(0xa1)]({'code':_0x3ae4f3(0xa2),'message':_0x3ae4f3(0x9f),'path':[_0x3ae4f3(0xdc)]}));});export const ArrayMatchingSchema=z['union']([z['literal'](a152_0x102aa1(0xd9)),z[a152_0x102aa1(0xce)](a152_0x102aa1(0xd2)),z['object']({'atLeast':z[a152_0x102aa1(0xd6)]()}),z[a152_0x102aa1(0xb8)]({'atMost':z[a152_0x102aa1(0xd6)]()}),z[a152_0x102aa1(0xb8)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a152_0x102aa1(0xae)](a152_0x102aa1(0xdb),[z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xda)]([a152_0x102aa1(0xd7),a152_0x102aa1(0xe5),a152_0x102aa1(0xd0),'Average']),'column':z['string'](),'groupingColumns':z[a152_0x102aa1(0xd1)](z[a152_0x102aa1(0xd5)]())[a152_0x102aa1(0xdf)]()}),z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xce)](a152_0x102aa1(0xaa)),'groupingColumns':z[a152_0x102aa1(0xd1)](z[a152_0x102aa1(0xd5)]())[a152_0x102aa1(0xdf)]()}),z[a152_0x102aa1(0xb8)]({'type':z['literal']('CountDistinct'),'columns':z[a152_0x102aa1(0xd1)](z[a152_0x102aa1(0xd5)]())}),z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xda)]([a152_0x102aa1(0xb9),'Last']),'column':z[a152_0x102aa1(0xd5)](),'orderColumn':z[a152_0x102aa1(0xd5)](),'groupingColumns':z[a152_0x102aa1(0xd1)](z[a152_0x102aa1(0xd5)]())['optional']()})]);export const TimeWindowDefSchema=z[a152_0x102aa1(0xb8)]({'duration':z[a152_0x102aa1(0xd6)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a152_0x102aa1(0xc9),a152_0x102aa1(0xca),a152_0x102aa1(0xbe)]);export const FilterColumnConditionDefSchema=z['object']({'type':z[a152_0x102aa1(0xce)](a152_0x102aa1(0xc1)),'column':z[a152_0x102aa1(0xd5)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x102aa1(0xdf)]()})[a152_0x102aa1(0xe7)]((_0x3d946e,_0x7a519a)=>{const _0x50a72e=a152_0x102aa1,_0x2330d0=_0x3d946e[_0x50a72e(0x9d)][_0x50a72e(0xdb)];_0x3d946e[_0x50a72e(0xc5)]===_0x50a72e(0xbd)?!TIMESTAMP_OPERATORS[_0x50a72e(0xcb)](_0x2330d0)&&_0x7a519a['addIssue']({'code':_0x50a72e(0xa2),'message':_0x50a72e(0xcf)+_0x2330d0+'\x27)','path':[_0x50a72e(0x9d),'type']}):TIMESTAMP_OPERATORS[_0x50a72e(0xcb)](_0x2330d0)&&_0x7a519a[_0x50a72e(0xa1)]({'code':_0x50a72e(0xa2),'message':'Operator\x20\x27'+_0x2330d0+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x50a72e(0x9d),'type']});});export const FilterRuleDefSchema=z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xce)](a152_0x102aa1(0xa5)),'conditions':z[a152_0x102aa1(0xd1)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a152_0x102aa1(0xb3)](()=>z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xce)](a152_0x102aa1(0xac)),'attribute':z[a152_0x102aa1(0xd5)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x102aa1(0xdf)](),'exclude':z[a152_0x102aa1(0x9e)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a152_0x102aa1(0xd5)]()[a152_0x102aa1(0xdf)](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a152_0x102aa1(0xd6)]()[a152_0x102aa1(0xdf)]()}));function a152_0x5553(_0x220218,_0xae418b){_0x220218=_0x220218-0x9c;const _0x1fa0e3=a152_0x1fa0();let _0x55532f=_0x1fa0e3[_0x220218];return _0x55532f;}export const BehaviorConditionDefSchema=z[a152_0x102aa1(0xb3)](()=>z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xce)](a152_0x102aa1(0xbb)),'attribute':z[a152_0x102aa1(0xd5)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x102aa1(0xdf)](),'exclude':z[a152_0x102aa1(0x9e)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a152_0x102aa1(0xd5)]()[a152_0x102aa1(0xdf)](),'filter':FilterRuleDefSchema[a152_0x102aa1(0xdf)](),'timeWindow':TimeWindowDefSchema[a152_0x102aa1(0xdf)](),'limit':z[a152_0x102aa1(0xd6)]()[a152_0x102aa1(0xdf)]()}));export const ColumnConditionDefSchema=z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xce)](a152_0x102aa1(0xc1)),'column':z[a152_0x102aa1(0xd5)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a152_0x102aa1(0xb3)](()=>z[a152_0x102aa1(0xb8)]({'type':z['enum']([a152_0x102aa1(0xa5),'Or']),'conditions':z[a152_0x102aa1(0xd1)](ConditionDefSchema),'description':z[a152_0x102aa1(0xd5)]()['optional']()}));export const SegmentRefConditionDefSchema=z[a152_0x102aa1(0xb8)]({'type':z['enum'](['include',a152_0x102aa1(0xba)]),'segment':z['string']()['min'](0x1,a152_0x102aa1(0xe8))});export const ConditionDefSchema=z[a152_0x102aa1(0xb3)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a152_0x102aa1(0xb3)](()=>z[a152_0x102aa1(0xb8)]({'type':z[a152_0x102aa1(0xda)]([a152_0x102aa1(0xa5),'Or']),'conditions':z[a152_0x102aa1(0xd1)](ConditionDefSchema),'description':z[a152_0x102aa1(0xd5)]()[a152_0x102aa1(0xdf)]()}));export const SegmentDefSchema=z[a152_0x102aa1(0xb8)]({'type':z['literal'](a152_0x102aa1(0xc0))[a152_0x102aa1(0xdf)](),'name':z[a152_0x102aa1(0xd5)]()[a152_0x102aa1(0xe0)](0x1,a152_0x102aa1(0xb6)),'description':z['string']()[a152_0x102aa1(0xdf)](),'folder':z[a152_0x102aa1(0xd5)]()['optional'](),'rule':RuleDefSchema[a152_0x102aa1(0xdf)](),'kind':z[a152_0x102aa1(0xda)]([a152_0x102aa1(0xe2),a152_0x102aa1(0xaf),'funnel_stage'])[a152_0x102aa1(0xdf)](),'visible':z['boolean']()[a152_0x102aa1(0xdf)](),'activations':z[a152_0x102aa1(0xd1)](z[a152_0x102aa1(0xd9)]())[a152_0x102aa1(0xdf)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a152_0xf1e1b0=a152_0x35c7;(function(_0x44033c,_0x292059){const _0x357fec=a152_0x35c7,_0x5eb782=_0x44033c();while(!![]){try{const _0x2560cf=parseInt(_0x357fec(0x213))/0x1+-parseInt(_0x357fec(0x229))/0x2*(parseInt(_0x357fec(0x208))/0x3)+-parseInt(_0x357fec(0x218))/0x4*(-parseInt(_0x357fec(0x226))/0x5)+-parseInt(_0x357fec(0x207))/0x6+parseInt(_0x357fec(0x203))/0x7*(parseInt(_0x357fec(0x1f3))/0x8)+parseInt(_0x357fec(0x204))/0x9*(parseInt(_0x357fec(0x21e))/0xa)+parseInt(_0x357fec(0x202))/0xb*(-parseInt(_0x357fec(0x231))/0xc);if(_0x2560cf===_0x292059)break;else _0x5eb782['push'](_0x5eb782['shift']());}catch(_0x3fb05c){_0x5eb782['push'](_0x5eb782['shift']());}}}(a152_0x475c,0xeb82e));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a152_0xf1e1b0(0x1f8),'Greater',a152_0xf1e1b0(0x20c),a152_0xf1e1b0(0x228),a152_0xf1e1b0(0x22b),'In',a152_0xf1e1b0(0x227),a152_0xf1e1b0(0x1ee),a152_0xf1e1b0(0x201),a152_0xf1e1b0(0x20f),a152_0xf1e1b0(0x1eb),a152_0xf1e1b0(0x225),'StartWith',a152_0xf1e1b0(0x235),a152_0xf1e1b0(0x238)]);export const TimeUnitSchema=z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x21a),a152_0xf1e1b0(0x20d),a152_0xf1e1b0(0x236),a152_0xf1e1b0(0x1ec),'week',a152_0xf1e1b0(0x232),a152_0xf1e1b0(0x212)]);export const AggregationTypeSchema=z['enum']([a152_0xf1e1b0(0x217),a152_0xf1e1b0(0x205),a152_0xf1e1b0(0x22f),'Min',a152_0xf1e1b0(0x234),a152_0xf1e1b0(0x1fc),a152_0xf1e1b0(0x221),a152_0xf1e1b0(0x216)]);const TemporalValueSchema=z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x1fd)]({'timestamp':z['string']()}),z[a152_0xf1e1b0(0x1fd)]({'last':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x211)](z['string'](),z[a152_0xf1e1b0(0x20a)]())]),'unit':z[a152_0xf1e1b0(0x22d)]()})]),OperatorValueSchema=z['union']([z['string'](),z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22e)](),TemporalValueSchema,z[a152_0xf1e1b0(0x1fe)](z['union']([z[a152_0xf1e1b0(0x22d)](),z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22e)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0xf1e1b0(0x1f8),'Greater',a152_0xf1e1b0(0x228),'Less',a152_0xf1e1b0(0x22b),'In',a152_0xf1e1b0(0x225),a152_0xf1e1b0(0x22a),a152_0xf1e1b0(0x235),'Regexp',a152_0xf1e1b0(0x20f),a152_0xf1e1b0(0x1eb)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a152_0xf1e1b0(0x1eb)]);export const OperatorDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':OperatorTypeSchema,'not':z['boolean']()[a152_0xf1e1b0(0x1fa)](),'value':OperatorValueSchema[a152_0xf1e1b0(0x1fa)](),'min':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22d)](),TemporalValueSchema])['optional'](),'max':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z['string'](),TemporalValueSchema])[a152_0xf1e1b0(0x1fa)](),'unit':TimeUnitSchema['optional'](),'duration':z[a152_0xf1e1b0(0x1fd)]({'day':z[a152_0xf1e1b0(0x20a)]()['optional'](),'week':z['number']()['optional'](),'month':z['number']()[a152_0xf1e1b0(0x1fa)](),'year':z[a152_0xf1e1b0(0x20a)]()[a152_0xf1e1b0(0x1fa)](),'hour':z['number']()['optional'](),'minute':z['number']()[a152_0xf1e1b0(0x1fa)](),'second':z[a152_0xf1e1b0(0x20a)]()[a152_0xf1e1b0(0x1fa)]()})[a152_0xf1e1b0(0x1fa)](),'from':z['object']({'last':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22d)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a152_0xf1e1b0(0x22e)]()[a152_0xf1e1b0(0x1fa)]()})[a152_0xf1e1b0(0x21b)]((_0x3ee651,_0x30ffe5)=>{const _0x474ab4=a152_0xf1e1b0;OPERATORS_REQUIRING_VALUE[_0x474ab4(0x1f4)](_0x3ee651[_0x474ab4(0x21f)])&&(_0x3ee651[_0x474ab4(0x1f9)]===undefined||_0x3ee651['value']===null)&&_0x30ffe5[_0x474ab4(0x219)]({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x222)+_0x3ee651['type']+_0x474ab4(0x22c),'path':[_0x474ab4(0x1f9)]}),_0x3ee651[_0x474ab4(0x21f)]===_0x474ab4(0x227)&&_0x3ee651[_0x474ab4(0x1f6)]===undefined&&_0x3ee651[_0x474ab4(0x1ed)]===undefined&&_0x30ffe5[_0x474ab4(0x219)]({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x1f2),'params':{'validationCode':_0x474ab4(0x239)}}),OPERATORS_REQUIRING_UNIT['has'](_0x3ee651[_0x474ab4(0x21f)])&&_0x3ee651['value']!==undefined&&!_0x3ee651[_0x474ab4(0x1f7)]&&_0x30ffe5[_0x474ab4(0x219)]({'code':'custom','message':'Operator\x20\x27'+_0x3ee651[_0x474ab4(0x21f)]+_0x474ab4(0x223),'path':[_0x474ab4(0x1f7)],'params':{'validationCode':_0x474ab4(0x1ff)}}),_0x3ee651['type']===_0x474ab4(0x238)&&(!_0x3ee651[_0x474ab4(0x215)]&&_0x30ffe5[_0x474ab4(0x219)]({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x206),'path':[_0x474ab4(0x215)]}),!_0x3ee651['from']&&_0x30ffe5['addIssue']({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x21d),'path':[_0x474ab4(0x230)]}));});export const ArrayMatchingSchema=z[a152_0xf1e1b0(0x1e8)]([z['literal']('any'),z[a152_0xf1e1b0(0x224)]('all'),z[a152_0xf1e1b0(0x1fd)]({'atLeast':z['number']()}),z[a152_0xf1e1b0(0x1fd)]({'atMost':z['number']()}),z[a152_0xf1e1b0(0x1fd)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a152_0xf1e1b0(0x1f5)]('type',[z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x205),a152_0xf1e1b0(0x200),a152_0xf1e1b0(0x234),'Average']),'column':z['string'](),'groupingColumns':z['array'](z[a152_0xf1e1b0(0x22d)]())['optional']()}),z['object']({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x217)),'groupingColumns':z[a152_0xf1e1b0(0x1fe)](z[a152_0xf1e1b0(0x22d)]())[a152_0xf1e1b0(0x1fa)]()}),z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x1fc)),'columns':z[a152_0xf1e1b0(0x1fe)](z[a152_0xf1e1b0(0x22d)]())}),z['object']({'type':z[a152_0xf1e1b0(0x1ea)](['First','Last']),'column':z[a152_0xf1e1b0(0x22d)](),'orderColumn':z['string'](),'groupingColumns':z[a152_0xf1e1b0(0x1fe)](z['string']())['optional']()})]);export const TimeWindowDefSchema=z['object']({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a152_0xf1e1b0(0x20f),a152_0xf1e1b0(0x1eb),'TimeRange']);export const FilterColumnConditionDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)]('Column'),'column':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0xf1e1b0(0x1fa)]()})[a152_0xf1e1b0(0x21b)]((_0x5b0ce9,_0x54dd21)=>{const _0x3f284b=a152_0xf1e1b0,_0x4b61ce=_0x5b0ce9['operator'][_0x3f284b(0x21f)];_0x5b0ce9[_0x3f284b(0x220)]===_0x3f284b(0x237)?!TIMESTAMP_OPERATORS[_0x3f284b(0x1f4)](_0x4b61ce)&&_0x54dd21['addIssue']({'code':_0x3f284b(0x23a),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x4b61ce+'\x27)','path':[_0x3f284b(0x1f0),'type']}):TIMESTAMP_OPERATORS['has'](_0x4b61ce)&&_0x54dd21['addIssue']({'code':_0x3f284b(0x23a),'message':_0x3f284b(0x222)+_0x4b61ce+_0x3f284b(0x1f1),'path':[_0x3f284b(0x1f0),_0x3f284b(0x21f)]});});export const FilterRuleDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x1ef)),'conditions':z[a152_0xf1e1b0(0x1fe)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z['object']({'type':z['literal']('Value'),'attribute':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0xf1e1b0(0x1fa)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)](),'filter':FilterRuleDefSchema[a152_0xf1e1b0(0x1fa)](),'limit':z[a152_0xf1e1b0(0x20a)]()['optional']()}));export const BehaviorConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z['object']({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x20e)),'attribute':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0xf1e1b0(0x1fa)](),'exclude':z[a152_0xf1e1b0(0x22e)]()[a152_0xf1e1b0(0x1fa)](),'aggregation':AggregationDefSchema[a152_0xf1e1b0(0x1fa)](),'source':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)](),'filter':FilterRuleDefSchema[a152_0xf1e1b0(0x1fa)](),'timeWindow':TimeWindowDefSchema[a152_0xf1e1b0(0x1fa)](),'limit':z[a152_0xf1e1b0(0x20a)]()[a152_0xf1e1b0(0x1fa)]()}));function a152_0x35c7(_0x2403fc,_0x5b3808){_0x2403fc=_0x2403fc-0x1e8;const _0x475c0=a152_0x475c();let _0x35c7ad=_0x475c0[_0x2403fc];return _0x35c7ad;}export const ColumnConditionDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x23b)),'column':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x1ef),'Or']),'conditions':z[a152_0xf1e1b0(0x1fe)](ConditionDefSchema),'description':z['string']()[a152_0xf1e1b0(0x1fa)]()}));export const SegmentRefConditionDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x210),'exclude']),'segment':z[a152_0xf1e1b0(0x22d)]()['min'](0x1,a152_0xf1e1b0(0x20b))});export const ConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z[a152_0xf1e1b0(0x1e8)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x1ef),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)]()}));function a152_0x475c(){const _0x177c7d=['Count','20xwQMWL','addIssue','second','superRefine','lazy','TimeRange\x20operator\x20requires\x20\x27from\x27','19176030ybEENa','type','column','First','Operator\x20\x27','\x27\x20requires\x20a\x20time\x20unit','literal','Contain','122890qkMYZV','Between','GreaterEqual','24yChsvY','StartWith','LessEqual','\x27\x20requires\x20a\x20value','string','boolean','Average','from','204JdbbhG','month','funnel_stage','Max','EndWith','hour','timestamp','TimeRange','MISSING_BETWEEN_BOUNDS','custom','Column','Segment\x20name\x20is\x20required','union','realtime','enum','TimeWithinNext','day','max','Regexp','And','operator','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','656HPtHPz','has','discriminatedUnion','min','unit','Equal','value','optional','segment','CountDistinct','object','array','MISSING_TIME_UNIT','Min','IsNull','595342aFZHic','7329gErXVz','9ZjwttE','Sum','TimeRange\x20operator\x20requires\x20\x27duration\x27','7845900msVjke','135021CbmUbI','batch','number','Segment\x20reference\x20must\x20not\x20be\x20empty','Less','minute','Behavior','TimeWithinPast','include','record','year','1606115ivjmFg','any','duration','Last'];a152_0x475c=function(){return _0x177c7d;};return a152_0x475c();}export const SegmentDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x1fb))[a152_0xf1e1b0(0x1fa)](),'name':z[a152_0xf1e1b0(0x22d)]()['min'](0x1,a152_0xf1e1b0(0x23c)),'description':z['string']()[a152_0xf1e1b0(0x1fa)](),'folder':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)](),'rule':RuleDefSchema[a152_0xf1e1b0(0x1fa)](),'kind':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x209),a152_0xf1e1b0(0x1e9),a152_0xf1e1b0(0x233)])['optional'](),'visible':z[a152_0xf1e1b0(0x22e)]()[a152_0xf1e1b0(0x1fa)](),'activations':z[a152_0xf1e1b0(0x1fe)](z[a152_0xf1e1b0(0x214)]())[a152_0xf1e1b0(0x1fa)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x449fd5=a153_0x2457;(function(_0x17edd2,_0x2e227b){const _0x1ec674=a153_0x2457,_0x565d26=_0x17edd2();while(!![]){try{const _0x382947=parseInt(_0x1ec674(0x132))/0x1+parseInt(_0x1ec674(0x11a))/0x2+-parseInt(_0x1ec674(0x120))/0x3+parseInt(_0x1ec674(0x11e))/0x4*(-parseInt(_0x1ec674(0x12c))/0x5)+-parseInt(_0x1ec674(0x117))/0x6+parseInt(_0x1ec674(0x118))/0x7*(parseInt(_0x1ec674(0x134))/0x8)+parseInt(_0x1ec674(0x12a))/0x9*(parseInt(_0x1ec674(0x12b))/0xa);if(_0x382947===_0x2e227b)break;else _0x565d26['push'](_0x565d26['shift']());}catch(_0x520a23){_0x565d26['push'](_0x565d26['shift']());}}}(a153_0x2f13,0x989ae));import{readFileSync}from'fs';function a153_0x2457(_0x31179f,_0x1fd505){_0x31179f=_0x31179f-0x116;const _0x2f139b=a153_0x2f13();let _0x2457b1=_0x2f139b[_0x31179f];return _0x2457b1;}import*as a153_0x36dd5f from'path';import*as a153_0x3523f9 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(['email',a153_0x449fd5(0x133)]);export function isJourneyDef(_0x1e1335){const _0x4be7a5=a153_0x449fd5;return typeof _0x1e1335===_0x4be7a5(0x11f)&&_0x1e1335!==null&&'type'in _0x1e1335&&_0x1e1335[_0x4be7a5(0x127)]===_0x4be7a5(0x126);}export function isCampaignDef(_0x361426){const _0x4bc12c=a153_0x449fd5;if(typeof _0x361426!==_0x4bc12c(0x11f)||_0x361426===null)return![];const _0x34c759=_0x361426,_0x13eac8=VALID_CAMPAIGN_TYPES['has'](_0x34c759['campaign_type']);if(_0x34c759[_0x4bc12c(0x127)]===_0x4bc12c(0x131)&&_0x13eac8)return!![];if(_0x13eac8&&!_0x34c759[_0x4bc12c(0x127)])return!![];return![];}export function isTemplateDef(_0x3a4124){const _0x5095cd=a153_0x449fd5;return typeof _0x3a4124===_0x5095cd(0x11f)&&_0x3a4124!==null&&_0x5095cd(0x127)in _0x3a4124&&_0x3a4124[_0x5095cd(0x127)]===_0x5095cd(0x11b);}export function isValidationResult(_0x8e463c){const _0x29880c=a153_0x449fd5;return!(_0x29880c(0x11d)in _0x8e463c);}function a153_0x2f13(){const _0x2fa73a=['5697923ILEfWu','length','806098NZmJns','template','not\x20a\x20','skipped','4394812yQtyss','object','3303504eASbhL','segment','warnings','parseDocument','valid','relative','journey','type','error','toJSON','9tUInaY','16249670KcuKLu','5axlYYf','utf-8','message','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','basename','campaign','112423xvcSJa','push','8CnaRog','filterType','result','YAML\x20parse\x20error:\x20','776922QWllGq'];a153_0x2f13=function(){return _0x2fa73a;};return a153_0x2f13();}export function createParseErrorResult(_0x53c476,_0x5c4f4c,_0x3b8421,_0x126678,_0x15f706=a153_0x449fd5(0x121)){const _0x539ab1=a153_0x449fd5;return{'filePath':_0x53c476,'relativePath':_0x5c4f4c,'source':_0x3b8421,'result':{'valid':![],'errors':[{'level':_0x539ab1(0x128),'path':'','code':'YAML_PARSE_ERROR','message':_0x126678}],'warnings':[]},'fileType':_0x15f706};}export function validateYamlFile(_0x393882,_0x6f0087,_0x3823e9={}){const _0x57b508=a153_0x449fd5,_0x481aeb=a153_0x36dd5f[_0x57b508(0x125)](_0x6f0087,_0x393882)||a153_0x36dd5f[_0x57b508(0x130)](_0x393882);try{const _0x4efb14=readFileSync(_0x393882,_0x57b508(0x12d)),_0x33f968=a153_0x3523f9[_0x57b508(0x123)](_0x4efb14),_0x3a5dc0=_0x33f968[_0x57b508(0x129)]();if(!_0x3a5dc0)return createParseErrorResult(_0x393882,_0x481aeb,_0x4efb14,_0x57b508(0x12f));let _0x1a418d;if(isJourneyDef(_0x3a5dc0))_0x1a418d=_0x57b508(0x126);else{if(isCampaignDef(_0x3a5dc0))_0x1a418d=_0x57b508(0x131);else isTemplateDef(_0x3a5dc0)?_0x1a418d=_0x57b508(0x11b):_0x1a418d=_0x57b508(0x121);}if(_0x3823e9[_0x57b508(0x135)]&&_0x1a418d!==_0x3823e9[_0x57b508(0x135)])return{'filePath':_0x393882,'relativePath':_0x481aeb,'skipped':!![],'reason':_0x57b508(0x11c)+_0x3823e9[_0x57b508(0x135)]};const _0x3b0caf={'source':_0x4efb14,'document':_0x33f968};let _0xb4f2d2;if(_0x1a418d==='journey')_0xb4f2d2=validateJourneyDef(_0x3a5dc0,_0x3b0caf);else{if(_0x1a418d===_0x57b508(0x131))_0xb4f2d2=validateCampaignDef(_0x3a5dc0,_0x3b0caf);else _0x1a418d===_0x57b508(0x11b)?_0xb4f2d2=validateTemplateDef(_0x3a5dc0,_0x3b0caf):_0xb4f2d2=validateSegmentDef(_0x3a5dc0,_0x3b0caf);}return{'filePath':_0x393882,'relativePath':_0x481aeb,'source':_0x4efb14,'result':_0xb4f2d2,'fileType':_0x1a418d};}catch(_0x57ba53){const _0x59f049=_0x57ba53 instanceof Error?_0x57ba53[_0x57b508(0x12e)]:String(_0x57ba53);return createParseErrorResult(_0x393882,_0x481aeb,'',_0x57b508(0x116)+_0x59f049);}}export function validateYamlFiles(_0x502a56,_0x28c95c,_0x11839f={}){return _0x502a56['map'](_0x4ea306=>validateYamlFile(_0x4ea306,_0x28c95c,_0x11839f));}export function calculateSummary(_0x252284){const _0x4c6bc8=a153_0x449fd5;let _0x447246=0x0,_0x4f1abf=0x0,_0x2e537b=0x0,_0x23645e=0x0;for(const _0x1e1494 of _0x252284){if(!isValidationResult(_0x1e1494)){_0x23645e++;continue;}_0x1e1494[_0x4c6bc8(0x136)][_0x4c6bc8(0x124)]?_0x447246++:_0x4f1abf++,_0x2e537b+=_0x1e1494[_0x4c6bc8(0x136)][_0x4c6bc8(0x122)][_0x4c6bc8(0x119)];}return{'validCount':_0x447246,'invalidCount':_0x4f1abf,'warningCount':_0x2e537b,'skippedCount':_0x23645e,'hasErrors':_0x4f1abf>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ce6a9,_0x5c94da){const _0x5516f1=a154_0x5ac7,_0x1d874f=_0x2ce6a9();while(!![]){try{const _0x5cbdd8=-parseInt(_0x5516f1(0x1ac))/0x1*(parseInt(_0x5516f1(0x1ad))/0x2)+parseInt(_0x5516f1(0x1b7))/0x3*(parseInt(_0x5516f1(0x1a9))/0x4)+parseInt(_0x5516f1(0x1c1))/0x5+-parseInt(_0x5516f1(0x1c5))/0x6*(-parseInt(_0x5516f1(0x1a8))/0x7)+-parseInt(_0x5516f1(0x1ce))/0x8*(parseInt(_0x5516f1(0x1c0))/0x9)+-parseInt(_0x5516f1(0x1ca))/0xa*(parseInt(_0x5516f1(0x1c8))/0xb)+parseInt(_0x5516f1(0x1bb))/0xc;if(_0x5cbdd8===_0x5c94da)break;else _0x1d874f['push'](_0x1d874f['shift']());}catch(_0x58ed9a){_0x1d874f['push'](_0x1d874f['shift']());}}}(a154_0xb010,0xc3a9f));import*as a154_0x2c547d from'yaml';function a154_0x5ac7(_0x2fc225,_0x2b76dd){_0x2fc225=_0x2fc225-0x1a4;const _0xb010fc=a154_0xb010();let _0x5ac7ad=_0xb010fc[_0x2fc225];return _0x5ac7ad;}function a154_0xb010(){const _0x1f343b=['flatMap','push','\x20|\x20','getIn','code','range','cyan','map','path','7NGNqda','238508rEjrTm','yellow','number','5nLmSaZ','42656CoqyIP','dim','safeParse','match','location','column','object','parse','toString','pop','15nTESWp','invalid_union','repeat','warnings','13712196HLdGtq','max','level','red','message','1216638vdOOIa','1694585XFGWqi','\x27:\x20','YAML\x20validation\x20error\x20at\x20\x27','split','7854774kXUqRE','join','length','662145Woedys','error','250wZbOyw','contents','data','errors','40LSMCXn'];a154_0xb010=function(){return _0x1f343b;};return a154_0xb010();}import a154_0x50d6ad from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x42d7cf,_0x3a8d03,_0x276574){const _0x5638e3=a154_0x5ac7;if(!_0x42d7cf||!_0x3a8d03)return undefined;try{let _0x49e4fa=_0x42d7cf[_0x5638e3(0x1d2)](_0x276574,!![]),_0x52b36c=[..._0x276574];while((!_0x49e4fa||typeof _0x49e4fa!=='object'||!('range'in _0x49e4fa)||!_0x49e4fa[_0x5638e3(0x1a4)])&&_0x52b36c[_0x5638e3(0x1c7)]>0x0){_0x52b36c[_0x5638e3(0x1b6)](),_0x49e4fa=_0x52b36c[_0x5638e3(0x1c7)]>0x0?_0x42d7cf[_0x5638e3(0x1d2)](_0x52b36c,!![]):_0x42d7cf[_0x5638e3(0x1cb)];}if(!_0x49e4fa||typeof _0x49e4fa!=='object'||!(_0x5638e3(0x1a4)in _0x49e4fa)||!_0x49e4fa[_0x5638e3(0x1a4)])return undefined;const [_0x5af52d]=_0x49e4fa['range'];return offsetToLocation(_0x3a8d03,_0x5af52d);}catch{return undefined;}}export function offsetToLocation(_0x4754b4,_0x1ca39e){const _0x47dabd=a154_0x5ac7;let _0x10f9e4=0x1,_0x33df50=0x1;for(let _0x5a10a2=0x0;_0x5a10a2<_0x1ca39e&&_0x5a10a2<_0x4754b4[_0x47dabd(0x1c7)];_0x5a10a2++){_0x4754b4[_0x5a10a2]==='\x0a'?(_0x10f9e4++,_0x33df50=0x1):_0x33df50++;}return{'line':_0x10f9e4,'column':_0x33df50,'offset':_0x1ca39e};}export function pathToArray(_0x164a44){const _0x4c12f0=a154_0x5ac7;if(!_0x164a44)return[];return _0x164a44[_0x4c12f0(0x1c4)]('.')[_0x4c12f0(0x1cf)](_0x315170=>{const _0x51563b=_0x4c12f0,_0x469faf=_0x315170[_0x51563b(0x1b0)](/^(\w+)\[(\d+)\]$/);if(_0x469faf)return[_0x469faf[0x1],parseInt(_0x469faf[0x2],0xa)];return[_0x315170];});}export function formatZodPath(_0x1611e4){const _0x4555d0=a154_0x5ac7;let _0x22b086='';for(const _0x851407 of _0x1611e4){if(typeof _0x851407===_0x4555d0(0x1ab))_0x22b086+='['+_0x851407+']';else{const _0x839b3a=String(_0x851407);_0x22b086+=_0x22b086?'.'+_0x839b3a:_0x839b3a;}}return _0x22b086;}export function flattenZodIssues(_0x59fdd5){const _0x4c21a0=a154_0x5ac7,_0x15b5c1=[];for(const _0x355bea of _0x59fdd5){if(_0x355bea[_0x4c21a0(0x1d3)]===_0x4c21a0(0x1b8)&&_0x4c21a0(0x1cd)in _0x355bea){const _0x28344e=_0x355bea[_0x4c21a0(0x1cd)];let _0x45a197=_0x28344e[0x0]||[];for(const _0xec009a of _0x28344e){_0xec009a[_0x4c21a0(0x1c7)]<_0x45a197['length']&&(_0x45a197=_0xec009a);}const _0x234f30=_0x45a197[_0x4c21a0(0x1a6)](_0x4ed484=>({..._0x4ed484,'path':[..._0x355bea[_0x4c21a0(0x1a7)],..._0x4ed484[_0x4c21a0(0x1a7)]]}));_0x15b5c1[_0x4c21a0(0x1d0)](...flattenZodIssues(_0x234f30));}else _0x15b5c1[_0x4c21a0(0x1d0)](_0x355bea);}return _0x15b5c1;}export function safeParseYaml(_0x2c10c7,_0xbf21b3){const _0x1523ec=a154_0x5ac7,_0x5d3674=a154_0x2c547d[_0x1523ec(0x1b4)](_0x2c10c7);if(!_0x5d3674||typeof _0x5d3674!==_0x1523ec(0x1b3))throw new Error('Invalid\x20YAML:\x20expected\x20an\x20object');const _0x328a57=_0xbf21b3[_0x1523ec(0x1af)](_0x5d3674);if(!_0x328a57['success']){const _0xed56f2=_0x328a57[_0x1523ec(0x1c9)]['issues'][0x0],_0x390144=formatZodPath(_0xed56f2[_0x1523ec(0x1a7)]);throw new Error(_0x390144?_0x1523ec(0x1c3)+_0x390144+_0x1523ec(0x1c2)+_0xed56f2[_0x1523ec(0x1bf)]:'YAML\x20validation\x20error:\x20'+_0xed56f2[_0x1523ec(0x1bf)]);}return _0x328a57[_0x1523ec(0x1cc)];}export function formatIssueWithContext(_0x1438ce,_0x49d8bd,_0xaf8e3d){const _0x55064c=a154_0x5ac7,_0x5ed3be=[],_0x499aad=_0x1438ce[_0x55064c(0x1bd)]===_0x55064c(0x1c9),_0x3d0a2e=_0x499aad?a154_0x50d6ad[_0x55064c(0x1be)]:a154_0x50d6ad[_0x55064c(0x1aa)],_0xdf8034=_0x499aad?a154_0x50d6ad[_0x55064c(0x1be)]:a154_0x50d6ad['yellow'],_0x3f6caa=_0xaf8e3d?a154_0x50d6ad[_0x55064c(0x1a5)](_0xaf8e3d+':'):'';if(_0x1438ce[_0x55064c(0x1b1)]){const _0x465de2=a154_0x50d6ad[_0x55064c(0x1a5)](_0x1438ce[_0x55064c(0x1b1)]['line']+':'+_0x1438ce[_0x55064c(0x1b1)][_0x55064c(0x1b2)]);_0x5ed3be[_0x55064c(0x1d0)](''+_0x3f6caa+_0x465de2+':\x20'+_0x3d0a2e(_0x1438ce[_0x55064c(0x1bd)])+'\x20'+_0xdf8034('['+_0x1438ce[_0x55064c(0x1d3)]+']'));}else _0x5ed3be['push'](''+_0x3f6caa+a154_0x50d6ad['dim'](_0x1438ce[_0x55064c(0x1a7)])+':\x20'+_0x3d0a2e(_0x1438ce['level'])+'\x20'+_0xdf8034('['+_0x1438ce[_0x55064c(0x1d3)]+']'));_0x5ed3be[_0x55064c(0x1d0)](_0x1438ce[_0x55064c(0x1bf)]);if(_0x1438ce['location']&&_0x49d8bd){const _0x4ef643=_0x49d8bd[_0x55064c(0x1c4)]('\x0a'),{line:_0x603315,column:_0x1ce5cb}=_0x1438ce[_0x55064c(0x1b1)],_0x2f9546=Math[_0x55064c(0x1bc)](0x1,_0x603315-0x1),_0x521ff8=Math['min'](_0x4ef643[_0x55064c(0x1c7)],_0x603315+0x1);_0x5ed3be[_0x55064c(0x1d0)]('');for(let _0x5030c3=_0x2f9546;_0x5030c3<=_0x521ff8;_0x5030c3++){const _0x2a09a3=_0x4ef643[_0x5030c3-0x1]||'',_0x2441b1=a154_0x50d6ad['dim'](_0x5030c3[_0x55064c(0x1b5)]()['padStart'](0x4)),_0x309a09=a154_0x50d6ad[_0x55064c(0x1ae)](_0x55064c(0x1d1));if(_0x5030c3===_0x603315){_0x5ed3be[_0x55064c(0x1d0)]('\x20\x20'+_0x2441b1+_0x309a09+_0x3d0a2e(_0x2a09a3));const _0x5ba760='\x20'[_0x55064c(0x1b9)](0x4+0x3+_0x1ce5cb-0x1);_0x5ed3be[_0x55064c(0x1d0)]('\x20\x20'+_0x5ba760+_0x3d0a2e('^'));}else _0x5ed3be[_0x55064c(0x1d0)]('\x20\x20'+_0x2441b1+_0x309a09+a154_0x50d6ad['dim'](_0x2a09a3));}}return _0x5ed3be[_0x55064c(0x1c6)]('\x0a');}export function formatValidationResult(_0x549f12,_0x13d462,_0x25ace4){const _0x23353d=a154_0x5ac7,_0x132608=[];for(const _0x5a61ee of _0x549f12['errors']){_0x132608[_0x23353d(0x1d0)](formatIssueWithContext(_0x5a61ee,_0x13d462,_0x25ace4)),_0x132608[_0x23353d(0x1d0)]('');}for(const _0x15c261 of _0x549f12[_0x23353d(0x1ba)]){_0x132608[_0x23353d(0x1d0)](formatIssueWithContext(_0x15c261,_0x13d462,_0x25ace4)),_0x132608[_0x23353d(0x1d0)]('');}return _0x132608[_0x23353d(0x1c6)]('\x0a');}
|