@treasuredata/tdx 2026.3.52 → 2026.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-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.d.ts.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/index.d.ts +2 -0
- package/dist/mcp/tools/index.d.ts.map +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.d.ts +50 -0
- package/dist/mcp/tools/work-create-item.d.ts.map +1 -0
- package/dist/mcp/tools/work-create-item.js +1 -0
- package/dist/mcp/tools/work-create-item.js.map +1 -0
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.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/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.d.ts +15 -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.d.ts +14 -2
- package/dist/sdk/workspace/index.d.ts.map +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/index.js.map +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 a156_0x220c(){const _0x11a908=['skipSchema','endsWith','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','Attribute\x20\x27','safeParse','.source','error','invalid_value','5aFicFe','1793580UiuMJh','attribute','1227770fVcJMG','EMPTY_ATTRIBUTE','MISSING_BETWEEN_BOUNDS','\x27\x20with\x20attribute\x20\x27','map','.attribute','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','filter','.segment','length','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','level','params','Behavior','path','type','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','message','issues','MISSING_NAME','custom','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','push','match','rule','14JreeOK','.type','rule.type','arrayMatching','name','warning','4955864ylxRsR','EMPTY_CONDITIONS','INVALID_RULE_TYPE','.conditions','document','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','.operator.type','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','SEGMENT_SCHEMA_ERROR','3512136TNRgSr','NESTED_CONDITION_GROUP','source','813211Eadhca','INVALID_OPERATOR_TYPE','Behavior\x20source\x20\x27','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','198IyDzdr','BEHAVIOR_SOURCE_MISSING_FILTER','MISSING_SEGMENT_REFERENCE','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','validationCode','4833618MwWaiY','1751036kxuGuE','conditions','data','code','MISSING_OPERATOR_VALUE','includes','.conditions[','MISSING_TIME_UNIT','success'];a156_0x220c=function(){return _0x11a908;};return a156_0x220c();}(function(_0x534f91,_0x193ebe){const _0x43d3b7=a156_0x357f,_0x5a5de1=_0x534f91();while(!![]){try{const _0x11731b=-parseInt(_0x43d3b7(0x107))/0x1+parseInt(_0x43d3b7(0x111))/0x2+parseInt(_0x43d3b7(0x123))/0x3+parseInt(_0x43d3b7(0xfb))/0x4*(-parseInt(_0x43d3b7(0x122))/0x5)+-parseInt(_0x43d3b7(0x110))/0x6*(parseInt(_0x43d3b7(0xf5))/0x7)+parseInt(_0x43d3b7(0x104))/0x8+-parseInt(_0x43d3b7(0x10b))/0x9*(-parseInt(_0x43d3b7(0x125))/0xa);if(_0x11731b===_0x193ebe)break;else _0x5a5de1['push'](_0x5a5de1['shift']());}catch(_0x327048){_0x5a5de1['push'](_0x5a5de1['shift']());}}}(a156_0x220c,0xe7f5a));function a156_0x357f(_0x537ce2,_0x5860d5){_0x537ce2=_0x537ce2-0xef;const _0x220c8d=a156_0x220c();let _0x357fd7=_0x220c8d[_0x537ce2];return _0x357fd7;}import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x1b1f5a,_0x25c622={},_0x2e6687={}){const _0x27a686=a156_0x357f;if(_0x2e6687[_0x27a686(0x11a)])return runSemanticChecks(_0x1b1f5a,_0x25c622);const _0x2bc94=SegmentDefSchema[_0x27a686(0x11e)](_0x1b1f5a);if(_0x2bc94[_0x27a686(0x119)])return runSemanticChecks(_0x2bc94[_0x27a686(0x113)],_0x25c622);return zodErrorsToValidationResult(_0x2bc94['error'],_0x25c622);}export function validateRuleDef(_0x682835,_0x199331,_0x573c07){const _0x2d9e8a=a156_0x357f;if(!_0x682835)return[];const _0x414752=RuleDefSchema['safeParse'](_0x682835);if(_0x414752['success'])return checkRule(_0x414752[_0x2d9e8a(0x113)],_0x199331,_0x573c07);const _0x328572=flattenZodIssues(_0x414752['error'][_0x2d9e8a(0x137)]);return _0x328572[_0x2d9e8a(0x129)](_0x862f09=>{const _0x46f1c8=_0x2d9e8a,_0x2d6ec0=formatZodPath(_0x862f09[_0x46f1c8(0x133)]),_0x539044=_0x2d6ec0?_0x199331+'.'+_0x2d6ec0:_0x199331,_0x223f9c=mapZodIssueToCode(_0x862f09,_0x2d6ec0),_0x1e81a7=getLocationFromPath(_0x573c07[_0x46f1c8(0xff)],_0x573c07[_0x46f1c8(0x106)],pathToArray(_0x539044));return{'level':_0x46f1c8(0x120),'path':_0x539044,'code':_0x223f9c,'message':_0x862f09[_0x46f1c8(0x136)],..._0x1e81a7&&{'location':_0x1e81a7}};});}function zodErrorsToValidationResult(_0x481c12,_0xf0dfd0){const _0xc454a=a156_0x357f,_0x1d7694=flattenZodIssues(_0x481c12[_0xc454a(0x137)]),_0x5bf916=_0x1d7694[_0xc454a(0x129)](_0x23487e=>{const _0x20963f=_0xc454a,_0xb56a2c=formatZodPath(_0x23487e[_0x20963f(0x133)]),_0x58682e=mapZodIssueToCode(_0x23487e,_0xb56a2c),_0x2810bd=getLocationFromPath(_0xf0dfd0[_0x20963f(0xff)],_0xf0dfd0[_0x20963f(0x106)],_0x23487e[_0x20963f(0x133)][_0x20963f(0x129)](_0x4a5319=>typeof _0x4a5319==='symbol'?String(_0x4a5319):_0x4a5319));return{'level':_0x20963f(0x120),'path':_0xb56a2c,'code':_0x58682e,'message':_0x23487e[_0x20963f(0x136)],..._0x2810bd&&{'location':_0x2810bd}};});return{'valid':![],'errors':_0x5bf916,'warnings':[]};}function mapZodIssueToCode(_0x5a61b2,_0x4e14ca){const _0x1caeca=a156_0x357f,_0x56512f=_0x5a61b2['code']===_0x1caeca(0xf0)?_0x5a61b2[_0x1caeca(0x131)]:undefined;if(_0x4e14ca===_0x1caeca(0xf9))return _0x1caeca(0xef);if(_0x4e14ca===_0x1caeca(0xf7)||_0x4e14ca['endsWith'](_0x1caeca(0xf6))){if(_0x5a61b2[_0x1caeca(0x114)]===_0x1caeca(0x121)){if(_0x4e14ca===_0x1caeca(0xf7)||_0x4e14ca[_0x1caeca(0xf3)](/\.conditions\[\d+\]\.type$/))return _0x1caeca(0xfd);}}if(_0x4e14ca[_0x1caeca(0x11b)](_0x1caeca(0x101)))return _0x1caeca(0x108);if(_0x4e14ca[_0x1caeca(0x11b)]('.operator.value'))return _0x1caeca(0x115);if(_0x56512f?.['validationCode']==='MISSING_BETWEEN_BOUNDS')return _0x1caeca(0x127);if(_0x56512f?.[_0x1caeca(0x10f)]===_0x1caeca(0x118))return _0x1caeca(0x118);if(_0x4e14ca[_0x1caeca(0x11b)](_0x1caeca(0xfe))||_0x4e14ca===_0x1caeca(0x112))return'MISSING_CONDITIONS';if(_0x4e14ca[_0x1caeca(0x116)](_0x1caeca(0xf8)))return'INVALID_ARRAY_MATCHING';if(_0x4e14ca['endsWith'](_0x1caeca(0x12d)))return _0x1caeca(0x10d);return _0x1caeca(0x103);}function runSemanticChecks(_0x1ad1d6,_0x1727ec){const _0x44ccd1=a156_0x357f,_0x2e1793=[];_0x1ad1d6[_0x44ccd1(0xf4)]&&_0x2e1793[_0x44ccd1(0xf2)](...checkRule(_0x1ad1d6[_0x44ccd1(0xf4)],_0x44ccd1(0xf4),_0x1727ec));const _0x37ba8c=_0x2e1793[_0x44ccd1(0x12c)](_0x4d7cbe=>_0x4d7cbe[_0x44ccd1(0x130)]===_0x44ccd1(0x120)),_0x5cf2bf=_0x2e1793['filter'](_0x56ad5a=>_0x56ad5a['level']===_0x44ccd1(0xfa));return{'valid':_0x37ba8c[_0x44ccd1(0x12e)]===0x0,'errors':_0x37ba8c,'warnings':_0x5cf2bf};}function checkRule(_0x58a3b8,_0x5ec7ea,_0x31a233){const _0x4cff03=a156_0x357f,_0x4a0e08=[];if(_0x58a3b8[_0x4cff03(0x112)][_0x4cff03(0x12e)]===0x0)return _0x4a0e08['push']({'level':_0x4cff03(0x120),'path':_0x5ec7ea+_0x4cff03(0xfe),'code':_0x4cff03(0xfc),'message':_0x4cff03(0x135),'location':getLocationFromPath(_0x31a233[_0x4cff03(0xff)],_0x31a233[_0x4cff03(0x106)],pathToArray(_0x5ec7ea+_0x4cff03(0xfe)))}),_0x4a0e08;return _0x4a0e08['push'](...checkConditions(_0x58a3b8[_0x4cff03(0x112)],_0x5ec7ea,_0x31a233)),_0x4a0e08;}function checkConditions(_0x584e78,_0x7ad27c,_0x260f8a){const _0x354e2b=a156_0x357f,_0x37e9c9=[];for(let _0x358892=0x0;_0x358892<_0x584e78['length'];_0x358892++){const _0x50cca8=_0x584e78[_0x358892],_0xcfebdf=_0x7ad27c+_0x354e2b(0x117)+_0x358892+']';_0x37e9c9[_0x354e2b(0xf2)](...checkCondition(_0x50cca8,_0xcfebdf,_0x260f8a));}return _0x37e9c9;}function checkCondition(_0x3e9e1d,_0x3fc554,_0x296942){const _0xe35093=a156_0x357f,_0x50ff36=[];if(_0x3e9e1d[_0xe35093(0x134)]==='And'||_0x3e9e1d[_0xe35093(0x134)]==='Or'){if(_0x3e9e1d['conditions'][_0xe35093(0x12e)]===0x0)_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0x120),'path':_0x3fc554+_0xe35093(0xfe),'code':'EMPTY_CONDITIONS','message':_0x3e9e1d['type']+_0xe35093(0x12f),'location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942[_0xe35093(0x106)],pathToArray(_0x3fc554+'.conditions'))});else{const _0x3cee47=_0x3e9e1d['description']!==undefined;!_0x3cee47&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0xfa),'path':_0x3fc554,'code':_0xe35093(0x105),'message':_0x3e9e1d['type']+'\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20'+_0xe35093(0xf1)+_0xe35093(0x10e),'location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942[_0xe35093(0x106)],pathToArray(_0x3fc554))}),_0x50ff36[_0xe35093(0xf2)](...checkConditions(_0x3e9e1d[_0xe35093(0x112)],_0x3fc554,_0x296942));}return _0x50ff36;}if(_0x3e9e1d[_0xe35093(0x134)]==='Value'||_0x3e9e1d[_0xe35093(0x134)]===_0xe35093(0x132)){const _0x312308=_0x3e9e1d,_0x56bd26=_0x312308['source'],_0x131934=_0x312308['aggregation'],_0x21a40d=_0x56bd26||_0x131934;(!_0x312308[_0xe35093(0x124)]||_0x312308[_0xe35093(0x124)]==='')&&(!_0x21a40d&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0x120),'path':_0x3fc554+'.attribute','code':_0xe35093(0x126),'message':'Attribute\x20name\x20cannot\x20be\x20empty','location':getLocationFromPath(_0x296942['document'],_0x296942[_0xe35093(0x106)],pathToArray(_0x3fc554+'.attribute'))}));_0x312308[_0xe35093(0x12c)]&&_0x50ff36[_0xe35093(0xf2)](...checkRule(_0x312308['filter'],_0x3fc554+'.filter',_0x296942));if(_0x312308[_0xe35093(0x106)]){const _0x520d7d=_0x312308[_0xe35093(0x124)]&&_0x312308[_0xe35093(0x124)]!=='';_0x520d7d&&!_0x312308[_0xe35093(0x12c)]&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0x120),'path':_0x3fc554+_0xe35093(0x11f),'code':_0xe35093(0x10c),'message':_0xe35093(0x109)+_0x312308['source']+_0xe35093(0x128)+_0x312308[_0xe35093(0x124)]+'\x27\x20'+_0xe35093(0x11c)+_0xe35093(0x10a)+_0xe35093(0x12b),'location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942['source'],pathToArray(_0x3fc554+_0xe35093(0x11f)))}),_0x520d7d&&_0x312308[_0xe35093(0x12c)]&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0xfa),'path':_0x3fc554+_0xe35093(0x12a),'code':_0xe35093(0x100),'message':_0xe35093(0x11d)+_0x312308[_0xe35093(0x124)]+_0xe35093(0x102)+'For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942['source'],pathToArray(_0x3fc554+_0xe35093(0x12a)))});}}return _0x50ff36;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3b5d1f,_0x4d58ca){const _0x10a599=a157_0x5ac0,_0x32764c=_0x3b5d1f();while(!![]){try{const _0x486072=-parseInt(_0x10a599(0x127))/0x1+-parseInt(_0x10a599(0x138))/0x2+parseInt(_0x10a599(0x14b))/0x3+-parseInt(_0x10a599(0x132))/0x4+-parseInt(_0x10a599(0x13c))/0x5+parseInt(_0x10a599(0x143))/0x6*(-parseInt(_0x10a599(0x141))/0x7)+-parseInt(_0x10a599(0x137))/0x8*(-parseInt(_0x10a599(0x144))/0x9);if(_0x486072===_0x4d58ca)break;else _0x32764c['push'](_0x32764c['shift']());}catch(_0x44b7c9){_0x32764c['push'](_0x32764c['shift']());}}}(a157_0x81f0,0xc3c2c));import a157_0x2f27dc from'path';import{sanitizeFileName}from'../../utils/string-utils.js';function a157_0x5ac0(_0x4cc0cf,_0x101fd7){_0x4cc0cf=_0x4cc0cf-0x123;const _0x81f05a=a157_0x81f0();let _0x5ac0aa=_0x81f05a[_0x4cc0cf];return _0x5ac0aa;}import{nodeFileSystem}from'../io/node-filesystem.js';function a157_0x81f0(){const _0x158d86=['relative','parse','26816Xdrslp','3038818JMcDtv','isScoped','parentSegment','includes','5751670rDjUoz','cwd','resourceType','configDir','readFile','14yxMHdG','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','1474518RTxAUt','12951vPiRne','trim','isFile','dirname','invalid_yaml','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','Parent\x20segment\x20not\x20specified','1970175flqxfm','scopedFolderPath','stat','message','journey','segment','parent_name','file','parent_segment','join','File\x20not\x20found','startsWith','isDirectory','tdx.json','resolve','file_not_found','838585cVqCvy','exists','extname','context','error','segmentName','folderPath','match','type','directory','basename','2714332yZQAiR','No\x20tdx.json\x20found\x20for\x20file:\x20','no_config'];a157_0x81f0=function(){return _0x158d86;};return a157_0x81f0();}import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x492a08){const _0x2d95a0=a157_0x5ac0;return _0x492a08[_0x2d95a0(0x12f)]!==_0x2d95a0(0x12b);}export function isScopedResolution(_0x56f98f){const _0x4dd42c=a157_0x5ac0;return _0x56f98f[_0x4dd42c(0x12f)]===_0x4dd42c(0x130)||_0x56f98f[_0x4dd42c(0x12f)]===_0x4dd42c(0x152)||_0x56f98f[_0x4dd42c(0x12f)]===_0x4dd42c(0x12a);}export function getScopedDetails(_0x4c7111){const _0x30c4fa=a157_0x5ac0;if(isScopedResolution(_0x4c7111))return{'isScoped':_0x4c7111[_0x30c4fa(0x139)],'scopedFolderPath':_0x4c7111['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x4f72b8,_0x5534e8){const _0x1936a2=a157_0x5ac0;let _0x40d9b2=a157_0x2f27dc['resolve'](_0x4f72b8);const _0xf19e7=a157_0x2f27dc['parse'](_0x40d9b2)['root'];while(_0x40d9b2!==_0xf19e7){const _0x552b5b=a157_0x2f27dc[_0x1936a2(0x154)](_0x40d9b2,_0x1936a2(0x124));if(await _0x5534e8[_0x1936a2(0x128)](_0x552b5b))try{const _0x1042b6=await _0x5534e8[_0x1936a2(0x140)](_0x552b5b),_0x20cc2a=JSON[_0x1936a2(0x136)](_0x1042b6);if(_0x20cc2a[_0x1936a2(0x153)]&&typeof _0x20cc2a[_0x1936a2(0x153)]==='string')return{'configPath':_0x552b5b,'configDir':_0x40d9b2,'parentSegment':_0x20cc2a[_0x1936a2(0x153)]};}catch{}_0x40d9b2=a157_0x2f27dc[_0x1936a2(0x147)](_0x40d9b2);}return null;}function calculateScopedPath(_0x26dc15,_0x38783a){const _0x39adb1=a157_0x5ac0,_0x5f102c=a157_0x2f27dc[_0x39adb1(0x135)](_0x38783a,_0x26dc15),_0xf43d05=_0x5f102c!==''&&_0x5f102c!=='.'&&!_0x5f102c[_0x39adb1(0x156)]('..');return{'isScoped':_0xf43d05,'scopedFolderPath':_0xf43d05?_0x5f102c['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x4f4a76){const _0x3b1258=a157_0x5ac0,{arg:_0x289106,contextParent:_0x2ceacc,cwd:cwd=process[_0x3b1258(0x13d)](),fs:fs=nodeFileSystem}=_0x4f4a76;if(_0x289106&&isYamlFilePath(_0x289106))try{const _0x5bb661=await resolveYamlFilePath(_0x289106,fs),_0x93aefd=a157_0x2f27dc[_0x3b1258(0x125)](_0x289106),_0x49b500=a157_0x2f27dc[_0x3b1258(0x147)](_0x93aefd),_0x9517f0=await findTdxConfigAsync(_0x49b500,fs);if(!_0x9517f0){if(_0x2ceacc){const _0x281c92=a157_0x2f27dc['dirname'](_0x93aefd);return{'type':_0x3b1258(0x152),'parentName':_0x2ceacc,'targetDir':_0x281c92,'configRoot':_0x281c92,'filePath':_0x93aefd,'resourceName':_0x5bb661[_0x3b1258(0x12c)],'folderPath':_0x5bb661[_0x3b1258(0x12d)],'resourceType':_0x5bb661['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x3b1258(0x134),'message':_0x3b1258(0x133)+_0x289106,'arg':_0x289106,'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 _0x2dbdee=calculateScopedPath(_0x49b500,_0x9517f0[_0x3b1258(0x13f)]);return{'type':'file','parentName':_0x9517f0[_0x3b1258(0x13a)],'targetDir':_0x9517f0[_0x3b1258(0x13f)],'configRoot':_0x9517f0[_0x3b1258(0x13f)],'filePath':_0x93aefd,'resourceName':_0x5bb661['segmentName'],'folderPath':_0x5bb661[_0x3b1258(0x12d)],'resourceType':_0x5bb661[_0x3b1258(0x13e)],'isScoped':_0x2dbdee[_0x3b1258(0x139)],'scopedFolderPath':_0x2dbdee[_0x3b1258(0x14c)]};}catch(_0x1fb23f){const _0x20a88a=_0x1fb23f instanceof Error?_0x1fb23f[_0x3b1258(0x14e)]:String(_0x1fb23f);if(_0x20a88a[_0x3b1258(0x13b)](_0x3b1258(0x155)))return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x126),'message':'File\x20not\x20found:\x20'+_0x289106,'arg':_0x289106};if(_0x20a88a[_0x3b1258(0x13b)]('No\x20tdx.json\x20found')){if(_0x2ceacc){const _0x79de7a=a157_0x2f27dc[_0x3b1258(0x125)](_0x289106);if(await fs['exists'](_0x79de7a)){const _0x9fdca5=a157_0x2f27dc['dirname'](_0x79de7a),_0x2d7600=await fs['readFile'](_0x79de7a),_0x3d1a57=_0x2d7600[_0x3b1258(0x12e)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x2dff84=_0x2d7600[_0x3b1258(0x12e)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x514666=_0x3d1a57?_0x3d1a57[0x1][_0x3b1258(0x145)]():a157_0x2f27dc[_0x3b1258(0x131)](_0x289106,a157_0x2f27dc[_0x3b1258(0x129)](_0x289106)),_0x263def=_0x2dff84&&_0x2dff84[0x1][_0x3b1258(0x145)]()===_0x3b1258(0x14f)?'journey':_0x3b1258(0x150);return{'type':'file','parentName':_0x2ceacc,'targetDir':_0x9fdca5,'configRoot':_0x9fdca5,'filePath':_0x79de7a,'resourceName':_0x514666,'folderPath':'','resourceType':_0x263def,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x134),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x289106,'arg':_0x289106,'helpText':_0x3b1258(0x142)};}return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x148),'message':_0x20a88a,'arg':_0x289106};}if(_0x289106){const _0x41ae47=a157_0x2f27dc[_0x3b1258(0x125)](cwd,_0x289106);let _0x1b1d79=null;try{_0x1b1d79=await fs[_0x3b1258(0x14d)](_0x41ae47);}catch{}if(_0x1b1d79?.[_0x3b1258(0x123)]()){const _0x411f39=await findTdxConfigAsync(_0x41ae47,fs);if(_0x411f39){const _0x2ea3a8=calculateScopedPath(_0x41ae47,_0x411f39['configDir']);return{'type':_0x3b1258(0x130),'parentName':_0x411f39[_0x3b1258(0x13a)],'targetDir':_0x41ae47,'configRoot':_0x411f39[_0x3b1258(0x13f)],'isScoped':_0x2ea3a8[_0x3b1258(0x139)],'scopedFolderPath':_0x2ea3a8[_0x3b1258(0x14c)]};}if(_0x2ceacc)return{'type':'directory','parentName':_0x2ceacc,'targetDir':_0x41ae47,'configRoot':_0x41ae47,'isScoped':![],'scopedFolderPath':''};return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x134),'message':_0x3b1258(0x149)+_0x289106,'arg':_0x289106,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}if(_0x1b1d79?.[_0x3b1258(0x146)]())return{'type':'error','errorCode':_0x3b1258(0x148),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x289106,'arg':_0x289106,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x238ad7=sanitizeFileName(_0x289106),_0x173931=getSegmentRootDir(_0x238ad7,cwd);return{'type':_0x3b1258(0x151),'parentName':_0x289106,'targetDir':_0x173931,'configRoot':_0x173931};}const _0x1ab4fe=await findTdxConfigAsync(cwd,fs);if(_0x1ab4fe){const _0x5b9102=calculateScopedPath(cwd,_0x1ab4fe[_0x3b1258(0x13f)]);return{'type':_0x3b1258(0x12a),'parentName':_0x1ab4fe[_0x3b1258(0x13a)],'targetDir':cwd,'configRoot':_0x1ab4fe[_0x3b1258(0x13f)],'isScoped':_0x5b9102['isScoped'],'scopedFolderPath':_0x5b9102[_0x3b1258(0x14c)]};}if(_0x2ceacc){const _0x249bd5=sanitizeFileName(_0x2ceacc),_0x24e852=getSegmentRootDir(_0x249bd5,cwd);return{'type':_0x3b1258(0x12a),'parentName':_0x2ceacc,'targetDir':_0x24e852,'configRoot':_0x24e852,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x3b1258(0x12b),'errorCode':'no_parent','message':_0x3b1258(0x14a),'helpText':'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'};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x97dcf8=a158_0x3810;(function(_0x3ee358,_0x415ef4){const _0x3dc9e1=a158_0x3810,_0x283357=_0x3ee358();while(!![]){try{const _0x598739=parseInt(_0x3dc9e1(0xcd))/0x1+parseInt(_0x3dc9e1(0xb7))/0x2*(parseInt(_0x3dc9e1(0xbe))/0x3)+parseInt(_0x3dc9e1(0xca))/0x4+parseInt(_0x3dc9e1(0xc9))/0x5*(parseInt(_0x3dc9e1(0xc3))/0x6)+-parseInt(_0x3dc9e1(0xb8))/0x7+parseInt(_0x3dc9e1(0xc7))/0x8*(parseInt(_0x3dc9e1(0xcc))/0x9)+-parseInt(_0x3dc9e1(0xc0))/0xa*(parseInt(_0x3dc9e1(0xc1))/0xb);if(_0x598739===_0x415ef4)break;else _0x283357['push'](_0x283357['shift']());}catch(_0x2204a0){_0x283357['push'](_0x283357['shift']());}}}(a158_0x2b01,0x4d71f));import{existsSync,readFileSync}from'fs';import a158_0x24898b from'path';const TDX_CONFIG_FILE=a158_0x97dcf8(0xb1),SEGMENTS_DIR=a158_0x97dcf8(0xb5);function a158_0x3810(_0x8d1871,_0x56b292){_0x8d1871=_0x8d1871-0xb0;const _0x2b016d=a158_0x2b01();let _0x381067=_0x2b016d[_0x8d1871];return _0x381067;}export function findTdxConfigPath(_0x532209=process['cwd']()){const _0x2b968e=a158_0x97dcf8;let _0x47ec2c=a158_0x24898b[_0x2b968e(0xb6)](_0x532209);const _0x8bae4d=a158_0x24898b[_0x2b968e(0xc6)](_0x47ec2c)['root'];while(_0x47ec2c!==_0x8bae4d){const _0x40c9e7=a158_0x24898b[_0x2b968e(0xbf)](_0x47ec2c,TDX_CONFIG_FILE);if(existsSync(_0x40c9e7))return _0x40c9e7;_0x47ec2c=a158_0x24898b[_0x2b968e(0xb9)](_0x47ec2c);}return null;}export function loadTdxConfig(_0x5490fc){const _0x3d4e6c=a158_0x97dcf8,_0x955a2c=readFileSync(_0x5490fc,_0x3d4e6c(0xcb));let _0x1e2a34;try{_0x1e2a34=JSON[_0x3d4e6c(0xc6)](_0x955a2c);}catch{throw new Error(_0x3d4e6c(0xbb)+_0x5490fc);}if(!_0x1e2a34||typeof _0x1e2a34!==_0x3d4e6c(0xc4))throw new Error(_0x3d4e6c(0xb4));const _0x313638=_0x1e2a34,_0x16dbca=_0x313638['parent_segment']&&typeof _0x313638[_0x3d4e6c(0xc2)]===_0x3d4e6c(0xb0),_0x22a8c5=_0x313638['engage_workspace']&&typeof _0x313638['engage_workspace']===_0x3d4e6c(0xb0);if(!_0x16dbca&&!_0x22a8c5)throw new Error(_0x3d4e6c(0xbd));const _0x4f05ed={};return _0x16dbca&&(_0x4f05ed['parent_segment']=_0x313638[_0x3d4e6c(0xc2)]),_0x22a8c5&&(_0x4f05ed['engage_workspace']=_0x313638[_0x3d4e6c(0xb3)]),_0x4f05ed;}export function findTdxConfig(_0x247cbf=process[a158_0x97dcf8(0xbc)]()){const _0x5f56d7=a158_0x97dcf8,_0xd3c4b9=findTdxConfigPath(_0x247cbf);if(!_0xd3c4b9)throw new Error(_0x5f56d7(0xba));const _0x407366=loadTdxConfig(_0xd3c4b9),_0x27b14a=a158_0x24898b['dirname'](_0xd3c4b9);return{'config':_0x407366,'configPath':_0xd3c4b9,'configDir':_0x27b14a};}export function tryFindTdxConfig(_0x3ef65b){try{return findTdxConfig(_0x3ef65b);}catch{return null;}}export function getSegmentRootDir(_0x3338e0,_0x78ef7f=process['cwd']()){const _0x5e54b1=a158_0x97dcf8;return a158_0x24898b[_0x5e54b1(0xbf)](_0x78ef7f,SEGMENTS_DIR,_0x3338e0);}export function getTdxConfigPath(_0x56e085,_0x5bc17d=process['cwd']()){return a158_0x24898b['join'](getSegmentRootDir(_0x56e085,_0x5bc17d),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x15fead,_0x1c827a){const _0x44bee2=a158_0x97dcf8,_0x354ec5=a158_0x24898b[_0x44bee2(0xb6)](_0x15fead),_0x5e5507=a158_0x24898b[_0x44bee2(0xce)](_0x1c827a,_0x354ec5);if(_0x5e5507[_0x44bee2(0xc8)]('..'))return'';return _0x5e5507;}function a158_0x2b01(){const _0x9341a6=['segments','resolve','424730lCyrhn','2148468keOHvk','dirname','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','Invalid\x20JSON\x20in\x20','cwd','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','3KhsjUB','join','2762460yKLwIS','33NaamIa','parent_segment','113292ljWcAh','object','replace','parse','120040gokDez','startsWith','20sIjebc','1459848NIrekP','utf-8','351PqtQxW','214827lIHyxR','relative','string','tdx.json','stringify','engage_workspace','Invalid\x20tdx.json:\x20expected\x20object'];a158_0x2b01=function(){return _0x9341a6;};return a158_0x2b01();}export function localPathToTdFolderPath(_0x3727df){const _0x175c58=a158_0x97dcf8,_0x66fd64=a158_0x24898b[_0x175c58(0xb9)](_0x3727df);if(_0x66fd64==='.'||_0x66fd64==='')return'';return _0x66fd64[_0x175c58(0xc5)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x19c383,_0x21d7b3){const _0x18d5d5=a158_0x97dcf8;if(!_0x19c383)return _0x21d7b3;return a158_0x24898b[_0x18d5d5(0xbf)](_0x21d7b3,_0x19c383);}export function createTdxConfigContent(_0x54c59e){const _0x39746b=a158_0x97dcf8,_0x2e607e={'parent_segment':_0x54c59e};return JSON[_0x39746b(0xb2)](_0x2e607e,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x2e105d){const _0x298f07=a158_0x97dcf8,_0x479d72={'engage_workspace':_0x2e105d};return JSON[_0x298f07(0xb2)](_0x479d72,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a159_0x17fd(){const _0x563a0b=['Activation\x20name\x20is\x20required','1096434ViQpWK','cron','2wTBZwR','Top-N','asc','8195760AxnVkf','string','9740aVjPEN','masked','none','2455BAEjAf','boolean','optional','28lLWWDw','145144KMXRrP','month','array','hour','nullable','min','number','weekly','minutes_interval','144nryWWO','1607520CghaXA','All','278768lOgWBM','onFailure','desc','object','enum','once','16249706UMbpPe','daily','day','minute','Connection\x20name\x20is\x20required'];a159_0x17fd=function(){return _0x563a0b;};return a159_0x17fd();}function a159_0x39be(_0x4c9948,_0x57d850){_0x4c9948=_0x4c9948-0x9c;const _0x17fdce=a159_0x17fd();let _0x39be60=_0x17fdce[_0x4c9948];return _0x39be60;}const a159_0x485418=a159_0x39be;(function(_0x55f4fc,_0x22dfb6){const _0x1b2170=a159_0x39be,_0x586986=_0x55f4fc();while(!![]){try{const _0x57402d=-parseInt(_0x1b2170(0xb8))/0x1*(-parseInt(_0x1b2170(0xaa))/0x2)+parseInt(_0x1b2170(0xa8))/0x3+parseInt(_0x1b2170(0xbd))/0x4*(-parseInt(_0x1b2170(0xc0))/0x5)+parseInt(_0x1b2170(0xb6))/0x6*(parseInt(_0x1b2170(0x9d))/0x7)+-parseInt(_0x1b2170(0x9e))/0x8*(parseInt(_0x1b2170(0xa7))/0x9)+-parseInt(_0x1b2170(0xbb))/0xa+parseInt(_0x1b2170(0xb0))/0xb;if(_0x57402d===_0x22dfb6)break;else _0x586986['push'](_0x586986['shift']());}catch(_0x4e17e5){_0x586986['push'](_0x586986['shift']());}}}(a159_0x17fd,0xaf231));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x485418(0xae)]([a159_0x485418(0xbf),'hourly',a159_0x485418(0xb1),a159_0x485418(0xa5),'monthly',a159_0x485418(0xb7),a159_0x485418(0xa6)]);export const RepeatUnitSchema=z[a159_0x485418(0xae)]([a159_0x485418(0xb3),a159_0x485418(0xa1),a159_0x485418(0xb2),'week',a159_0x485418(0x9f),a159_0x485418(0xaf),a159_0x485418(0xbf)]);export const ScheduleDefSchema=z[a159_0x485418(0xad)]({'type':ScheduleTypeSchema[a159_0x485418(0x9c)](),'repeat_unit':RepeatUnitSchema[a159_0x485418(0x9c)](),'repeat_frequency':z[a159_0x485418(0xa4)]()[a159_0x485418(0x9c)](),'repeat_sub_frequency':z[a159_0x485418(0xa0)](z[a159_0x485418(0xa4)]())['optional'](),'start_at':z[a159_0x485418(0xbc)]()[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'end_on':z[a159_0x485418(0xbc)]()['nullable']()['optional'](),'timezone':z[a159_0x485418(0xbc)]()[a159_0x485418(0x9c)]()});export const NotificationDefSchema=z[a159_0x485418(0xad)]({'notify_on':z[a159_0x485418(0xa0)](z[a159_0x485418(0xae)](['onSuccess',a159_0x485418(0xab)]))[a159_0x485418(0x9c)](),'email_recipients':z[a159_0x485418(0xa0)](z['string']())['optional']()});export const ActivationColumnDefSchema=z['union']([z[a159_0x485418(0xbc)](),z['object']({'name':z['string'](),'type':z[a159_0x485418(0xbc)]()[a159_0x485418(0x9c)](),'visibility':z['enum'](['clear','masked'])['optional']()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a159_0x485418(0xa0)](z[a159_0x485418(0xad)]({'name':z[a159_0x485418(0xbc)](),'type':z['string']()[a159_0x485418(0x9c)](),'visibility':z[a159_0x485418(0xae)](['clear',a159_0x485418(0xbe)])[a159_0x485418(0x9c)]()}))[a159_0x485418(0x9c)](),'behavior_table':z['string']()[a159_0x485418(0x9c)](),'join_row':z['number']()[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'join_strategy':z[a159_0x485418(0xae)]([a159_0x485418(0xa9),'First','Last',a159_0x485418(0xb9)])[a159_0x485418(0x9c)](),'formatting':z[a159_0x485418(0xae)](['rows','cols'])[a159_0x485418(0x9c)](),'order_by':z[a159_0x485418(0xa0)](z[a159_0x485418(0xad)]({'key':z[a159_0x485418(0xbc)](),'order':z['enum']([a159_0x485418(0xba),a159_0x485418(0xac)])}))[a159_0x485418(0x9c)]()});export const ActivationDefSchema=z[a159_0x485418(0xad)]({'name':z[a159_0x485418(0xbc)]()['min'](0x1,a159_0x485418(0xb5)),'description':z[a159_0x485418(0xbc)]()['optional'](),'connection':z[a159_0x485418(0xbc)]()[a159_0x485418(0xa3)](0x1,a159_0x485418(0xb4)),'all_columns':z[a159_0x485418(0xc1)]()[a159_0x485418(0x9c)](),'columns':z[a159_0x485418(0xa0)](ActivationColumnDefSchema)[a159_0x485418(0x9c)](),'schedule':ScheduleDefSchema[a159_0x485418(0x9c)](),'notification':NotificationDefSchema[a159_0x485418(0x9c)](),'connector_config':z['record'](z[a159_0x485418(0xbc)](),z['unknown']())[a159_0x485418(0x9c)](),'activation_template_id':z[a159_0x485418(0xbc)]()[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'behavior':ActivationBehaviorDefSchema[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'run_after_journey_refresh':z[a159_0x485418(0xc1)]()[a159_0x485418(0x9c)](),'nested_workflow_project_name':z[a159_0x485418(0xbc)]()['optional'](),'nested_workflow_name':z['string']()[a159_0x485418(0x9c)](),'lock_enabled':z[a159_0x485418(0xc1)]()[a159_0x485418(0x9c)]()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a160_0x593b(){var _0x26969d=['2NXaPjD','451740khKwup','78576RvrpeY','245964XlcaBa','1368525BaUpIa','220CwMgJA','6066ngXYQt','49OAJtMY','435040qDgHAO','25hMTEeq','88dmtBLu','2042910NKIQCG'];a160_0x593b=function(){return _0x26969d;};return a160_0x593b();}function a160_0x132f(_0x291eda,_0x2392e8){_0x291eda=_0x291eda-0x82;var _0x593bfd=a160_0x593b();var _0x132fd9=_0x593bfd[_0x291eda];return _0x132fd9;}(function(_0x2df714,_0x4728b5){var _0x5de06b=a160_0x132f,_0x13805a=_0x2df714();while(!![]){try{var _0x3a570d=-parseInt(_0x5de06b(0x8b))/0x1+parseInt(_0x5de06b(0x89))/0x2*(parseInt(_0x5de06b(0x8d))/0x3)+-parseInt(_0x5de06b(0x8a))/0x4*(-parseInt(_0x5de06b(0x86))/0x5)+parseInt(_0x5de06b(0x88))/0x6+-parseInt(_0x5de06b(0x84))/0x7*(parseInt(_0x5de06b(0x85))/0x8)+-parseInt(_0x5de06b(0x83))/0x9*(-parseInt(_0x5de06b(0x82))/0xa)+-parseInt(_0x5de06b(0x87))/0xb*(parseInt(_0x5de06b(0x8c))/0xc);if(_0x3a570d===_0x4728b5)break;else _0x13805a['push'](_0x13805a['shift']());}catch(_0x1c3821){_0x13805a['push'](_0x13805a['shift']());}}}(a160_0x593b,0xb7d37));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a161_0x3226a4=a161_0x40fb;(function(_0xd6dda1,_0x1a8cd7){const _0x3c650d=a161_0x40fb,_0xf87659=_0xd6dda1();while(!![]){try{const _0x3da654=parseInt(_0x3c650d(0x169))/0x1+-parseInt(_0x3c650d(0x155))/0x2+-parseInt(_0x3c650d(0x14f))/0x3+parseInt(_0x3c650d(0x162))/0x4+parseInt(_0x3c650d(0x15f))/0x5*(-parseInt(_0x3c650d(0x154))/0x6)+parseInt(_0x3c650d(0x164))/0x7+-parseInt(_0x3c650d(0x16f))/0x8*(parseInt(_0x3c650d(0x165))/0x9);if(_0x3da654===_0x1a8cd7)break;else _0xf87659['push'](_0xf87659['shift']());}catch(_0x3c7af8){_0xf87659['push'](_0xf87659['shift']());}}}(a161_0x10d0,0x34feb));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a161_0x3226a4(0x159),a161_0x3226a4(0x151),'launched']);export const ReentryModeTypeSchema=z['enum']([a161_0x3226a4(0x15a),a161_0x3226a4(0x167),'reentry_always']);export const WaitUnitTypeSchema=z[a161_0x3226a4(0x149)](['day',a161_0x3226a4(0x161)]);export const StepTypeValueSchema=z['enum']([a161_0x3226a4(0x15d),'activation',a161_0x3226a4(0x16c),a161_0x3226a4(0x16e),a161_0x3226a4(0x170),a161_0x3226a4(0x163),a161_0x3226a4(0x14d)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x3226a4(0x156)]({'journey':z['string'](),'stage':z[a161_0x3226a4(0x16d)](),'bundle_id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()});export const CriteriaDefSchema=z[a161_0x3226a4(0x156)]({'name':z[a161_0x3226a4(0x16d)](),'description':z['string']()[a161_0x3226a4(0x14c)](),'segment':z[a161_0x3226a4(0x16d)](),'target':JumpTargetDefSchema[a161_0x3226a4(0x14c)]()});function a161_0x10d0(){const _0x22c12c=['end','Journey\x20name\x20is\x20required','173001juDphp','literal','simulation','journey','length','6ZxFWMA','489268jylMWK','object','filter','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','draft','no_reentry','discriminatedUnion','stages','wait','min','895035CdWPgR','number','week','1086228jbIxNG','jump','2830954UGgkyy','3505059GQueSj','type','reentry_unless_goal_achieved','record','411847FiTarQ','boolean','lazy','decision_point','string','ab_test','8wPYEiv','merge','enum','refine','array','optional'];a161_0x10d0=function(){return _0x22c12c;};return a161_0x10d0();}const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a161_0x3226a4(0x160)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()}),WaitConditionDefSchema=z['object']({'segment':z[a161_0x3226a4(0x16d)](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x3226a4(0x14c)]()}),WaitStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'duration':z['number']()['optional'](),'unit':WaitUnitTypeSchema[a161_0x3226a4(0x14c)](),'wait_until':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'condition':WaitConditionDefSchema[a161_0x3226a4(0x14c)](),'days_of_week':z[a161_0x3226a4(0x14b)](z[a161_0x3226a4(0x16d)]())[a161_0x3226a4(0x14c)]()}),StepBaseFields={'name':z[a161_0x3226a4(0x16d)](),'uuid':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()},WaitStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'activation':z['string']()}),ActivationStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x3226a4(0x156)]({'name':z['string'](),'segment':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'segment_id':z['string']()[a161_0x3226a4(0x14c)](),'excluded':z[a161_0x3226a4(0x16a)]()[a161_0x3226a4(0x14c)](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x16c)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x3226a4(0x156)]({'id':z['string']()[a161_0x3226a4(0x14c)](),'name':z[a161_0x3226a4(0x16d)](),'percentage':z['number'](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()}),AbTestStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a161_0x3226a4(0x16d)]()['optional'](),'customized_split':z[a161_0x3226a4(0x16a)]()[a161_0x3226a4(0x14c)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x16e)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x170))}),JumpStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x3226a4(0x163)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z['literal'](a161_0x3226a4(0x14d))})['passthrough']();export const StepDefSchema=z[a161_0x3226a4(0x15b)](a161_0x3226a4(0x166),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a161_0x40fb(_0x3e9885,_0x103fed){_0x3e9885=_0x3e9885-0x149;const _0x10d075=a161_0x10d0();let _0x40fb4f=_0x10d075[_0x3e9885];return _0x40fb4f;}export const StageDefSchema=z['object']({'name':z[a161_0x3226a4(0x16d)](),'description':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'id':z['string']()[a161_0x3226a4(0x14c)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a161_0x3226a4(0x14b)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a161_0x3226a4(0x14c)](),'root_step':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'steps':z['array'](StepDefSchema)[a161_0x3226a4(0x14c)]()});export const JourneyEntryDefSchema=z[a161_0x3226a4(0x156)]({'name':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'version':z[a161_0x3226a4(0x16d)]()['optional'](),'state':JourneyStateTypeSchema[a161_0x3226a4(0x14c)](),'latest':z[a161_0x3226a4(0x16a)]()[a161_0x3226a4(0x14c)](),'stages':z[a161_0x3226a4(0x14b)](StageDefSchema),'id':z[a161_0x3226a4(0x16d)]()['optional'](),'version_number':z[a161_0x3226a4(0x160)]()[a161_0x3226a4(0x14c)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a161_0x3226a4(0x16b)](()=>z[a161_0x3226a4(0x156)]({'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x152)),'name':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x15e)](0x1,a161_0x3226a4(0x14e)),'description':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'bundle_id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'bundle_name':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'folder_id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'reentry':ReentryModeTypeSchema[a161_0x3226a4(0x14c)](),'allow_reentry':z['boolean']()[a161_0x3226a4(0x14c)](),'goal':CriteriaDefSchema[a161_0x3226a4(0x14c)](),'id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'version':z['string']()[a161_0x3226a4(0x14c)](),'version_number':z[a161_0x3226a4(0x160)]()[a161_0x3226a4(0x14c)](),'stages':z[a161_0x3226a4(0x14b)](StageDefSchema)['optional'](),'versions':z[a161_0x3226a4(0x14b)](JourneyEntryDefSchema)['optional'](),'journeys':z[a161_0x3226a4(0x14b)](JourneyEntryDefSchema)[a161_0x3226a4(0x14c)](),'segments':z['record'](z['string'](),EmbeddedSegmentDefSchema)[a161_0x3226a4(0x14c)](),'activations':z[a161_0x3226a4(0x168)](z[a161_0x3226a4(0x16d)](),ActivationDefSchema)[a161_0x3226a4(0x14c)]()})[a161_0x3226a4(0x14a)](_0x5d7aaa=>{const _0x221de8=a161_0x3226a4,_0x5f0631=[_0x5d7aaa['journeys'],_0x5d7aaa[_0x221de8(0x15c)],_0x5d7aaa['versions']][_0x221de8(0x157)](_0xb7332f=>Array['isArray'](_0xb7332f)&&_0xb7332f['length']>0x0)[_0x221de8(0x153)];return _0x5f0631===0x1;},{'message':a161_0x3226a4(0x158)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a3e91,_0x47bd34){var _0x238c7c=a163_0x2aa5,_0x5b5fc4=_0x4a3e91();while(!![]){try{var _0xe4d632=parseInt(_0x238c7c(0x172))/0x1*(-parseInt(_0x238c7c(0x17c))/0x2)+parseInt(_0x238c7c(0x17a))/0x3+-parseInt(_0x238c7c(0x175))/0x4*(parseInt(_0x238c7c(0x179))/0x5)+-parseInt(_0x238c7c(0x176))/0x6*(-parseInt(_0x238c7c(0x17b))/0x7)+-parseInt(_0x238c7c(0x174))/0x8+-parseInt(_0x238c7c(0x178))/0x9+-parseInt(_0x238c7c(0x173))/0xa*(-parseInt(_0x238c7c(0x177))/0xb);if(_0xe4d632===_0x47bd34)break;else _0x5b5fc4['push'](_0x5b5fc4['shift']());}catch(_0x21e74b){_0x5b5fc4['push'](_0x5b5fc4['shift']());}}}(a163_0x2851,0x5258d));function a163_0x2aa5(_0x108bbb,_0xe33a86){_0x108bbb=_0x108bbb-0x172;var _0x28515f=a163_0x2851();var _0x2aa5ed=_0x28515f[_0x108bbb];return _0x2aa5ed;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x2851(){var _0x3feda5=['873978mWIWIz','3076129kbIfUL','2uyZDqW','612131CdQjiS','950enHUGK','38600LkQNmw','277304Fjysyw','6lcvEYz','65879fwXjGp','1237509voVmPS','15QJXqsj'];a163_0x2851=function(){return _0x3feda5;};return a163_0x2851();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a163_0x2d12a4=a163_0x5684;(function(_0xf2a105,_0x5975d2){const _0x23eba0=a163_0x5684,_0x49bbee=_0xf2a105();while(!![]){try{const _0x54fa4e=-parseInt(_0x23eba0(0x10c))/0x1+parseInt(_0x23eba0(0x10b))/0x2+-parseInt(_0x23eba0(0x10d))/0x3+-parseInt(_0x23eba0(0x129))/0x4+-parseInt(_0x23eba0(0x119))/0x5+parseInt(_0x23eba0(0xfd))/0x6+parseInt(_0x23eba0(0xf4))/0x7;if(_0x54fa4e===_0x5975d2)break;else _0x49bbee['push'](_0x49bbee['shift']());}catch(_0x5a30bc){_0x49bbee['push'](_0x49bbee['shift']());}}}(a163_0x358b,0xbbd30));import{z}from'zod';export const OperatorTypeSchema=z[a163_0x2d12a4(0x109)]([a163_0x2d12a4(0x11a),'Greater','Less','GreaterEqual',a163_0x2d12a4(0xeb),'In','Between',a163_0x2d12a4(0x112),a163_0x2d12a4(0x11e),a163_0x2d12a4(0x132),'TimeWithinNext',a163_0x2d12a4(0x12a),a163_0x2d12a4(0xfe),a163_0x2d12a4(0xf7),a163_0x2d12a4(0x12f)]);export const TimeUnitSchema=z[a163_0x2d12a4(0x109)]([a163_0x2d12a4(0xfb),a163_0x2d12a4(0x11b),'hour',a163_0x2d12a4(0x107),a163_0x2d12a4(0x113),'month',a163_0x2d12a4(0x130)]);export const AggregationTypeSchema=z['enum']([a163_0x2d12a4(0xea),'Sum','Average',a163_0x2d12a4(0xf1),'Max','CountDistinct',a163_0x2d12a4(0x12b),a163_0x2d12a4(0x101)]);const TemporalValueSchema=z[a163_0x2d12a4(0x100)]([z['object']({'timestamp':z[a163_0x2d12a4(0x115)]()}),z[a163_0x2d12a4(0xe9)]({'last':z['union']([z[a163_0x2d12a4(0x11f)](),z[a163_0x2d12a4(0xff)](z[a163_0x2d12a4(0x115)](),z[a163_0x2d12a4(0x11f)]())]),'unit':z[a163_0x2d12a4(0x115)]()})]),OperatorValueSchema=z[a163_0x2d12a4(0x100)]([z[a163_0x2d12a4(0x115)](),z['number'](),z['boolean'](),TemporalValueSchema,z[a163_0x2d12a4(0x128)](z[a163_0x2d12a4(0x100)]([z[a163_0x2d12a4(0x115)](),z[a163_0x2d12a4(0x11f)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a163_0x2d12a4(0x11a),'Greater','GreaterEqual',a163_0x2d12a4(0x10a),a163_0x2d12a4(0xeb),'In',a163_0x2d12a4(0x12a),a163_0x2d12a4(0xfe),'EndWith',a163_0x2d12a4(0x112),'TimeWithinPast',a163_0x2d12a4(0x106)]),OPERATORS_REQUIRING_UNIT=new Set([a163_0x2d12a4(0x132),a163_0x2d12a4(0x106)]);function a163_0x358b(){const _0x217c05=['segment','batch','Min','type','optional','12759208liICgN','duration','addIssue','EndWith','unit','Segment\x20name\x20is\x20required','boolean','second','And','6241158YlScVv','StartWith','record','union','Last','exclude','Column','timestamp','Segment\x20reference\x20must\x20not\x20be\x20empty','TimeWithinNext','day','has','enum','Less','2292608ofAWdm','544017aarUZI','1105713GPUqtf','CountDistinct','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','max','operator','Regexp','week','column','string','discriminatedUnion','min','literal','4388965BlPeNJ','Equal','minute','Sum','Max','IsNull','number','lazy','from','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','custom','any','value','Value','\x27\x20requires\x20a\x20value','array','5798128TGPafn','Contain','First','TimeRange\x20operator\x20requires\x20\x27duration\x27','Behavior','all','TimeRange','year','MISSING_TIME_UNIT','TimeWithinPast','include','object','Count','LessEqual','Operator\x20\x27','superRefine','funnel_stage'];a163_0x358b=function(){return _0x217c05;};return a163_0x358b();}export const OperatorDefSchema=z[a163_0x2d12a4(0xe9)]({'type':OperatorTypeSchema,'not':z[a163_0x2d12a4(0xfa)]()[a163_0x2d12a4(0xf3)](),'value':OperatorValueSchema['optional'](),'min':z[a163_0x2d12a4(0x100)]([z[a163_0x2d12a4(0x11f)](),z['string'](),TemporalValueSchema])[a163_0x2d12a4(0xf3)](),'max':z[a163_0x2d12a4(0x100)]([z[a163_0x2d12a4(0x11f)](),z[a163_0x2d12a4(0x115)](),TemporalValueSchema])[a163_0x2d12a4(0xf3)](),'unit':TimeUnitSchema['optional'](),'duration':z[a163_0x2d12a4(0xe9)]({'day':z[a163_0x2d12a4(0x11f)]()[a163_0x2d12a4(0xf3)](),'week':z[a163_0x2d12a4(0x11f)]()[a163_0x2d12a4(0xf3)](),'month':z[a163_0x2d12a4(0x11f)]()[a163_0x2d12a4(0xf3)](),'year':z['number']()[a163_0x2d12a4(0xf3)](),'hour':z['number']()['optional'](),'minute':z[a163_0x2d12a4(0x11f)]()['optional'](),'second':z['number']()[a163_0x2d12a4(0xf3)]()})['optional'](),'from':z[a163_0x2d12a4(0xe9)]({'last':z['union']([z['number'](),z['string']()]),'unit':TimeUnitSchema})[a163_0x2d12a4(0xf3)](),'reverse':z[a163_0x2d12a4(0xfa)]()[a163_0x2d12a4(0xf3)]()})[a163_0x2d12a4(0xed)]((_0x41c6b3,_0x1ffeff)=>{const _0x3d2db4=a163_0x2d12a4;OPERATORS_REQUIRING_VALUE[_0x3d2db4(0x108)](_0x41c6b3['type'])&&(_0x41c6b3[_0x3d2db4(0x125)]===undefined||_0x41c6b3[_0x3d2db4(0x125)]===null)&&_0x1ffeff[_0x3d2db4(0xf6)]({'code':'custom','message':_0x3d2db4(0xec)+_0x41c6b3[_0x3d2db4(0xf2)]+_0x3d2db4(0x127),'path':[_0x3d2db4(0x125)]}),_0x41c6b3['type']==='Between'&&_0x41c6b3['min']===undefined&&_0x41c6b3[_0x3d2db4(0x110)]===undefined&&_0x1ffeff['addIssue']({'code':'custom','message':_0x3d2db4(0x122),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x3d2db4(0x108)](_0x41c6b3[_0x3d2db4(0xf2)])&&_0x41c6b3[_0x3d2db4(0x125)]!==undefined&&!_0x41c6b3[_0x3d2db4(0xf8)]&&_0x1ffeff[_0x3d2db4(0xf6)]({'code':_0x3d2db4(0x123),'message':_0x3d2db4(0xec)+_0x41c6b3[_0x3d2db4(0xf2)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x3d2db4(0xf8)],'params':{'validationCode':_0x3d2db4(0x131)}}),_0x41c6b3[_0x3d2db4(0xf2)]===_0x3d2db4(0x12f)&&(!_0x41c6b3[_0x3d2db4(0xf5)]&&_0x1ffeff[_0x3d2db4(0xf6)]({'code':'custom','message':_0x3d2db4(0x12c),'path':[_0x3d2db4(0xf5)]}),!_0x41c6b3[_0x3d2db4(0x121)]&&_0x1ffeff['addIssue']({'code':_0x3d2db4(0x123),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':['from']}));});export const ArrayMatchingSchema=z[a163_0x2d12a4(0x100)]([z['literal'](a163_0x2d12a4(0x124)),z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0x12e)),z[a163_0x2d12a4(0xe9)]({'atLeast':z[a163_0x2d12a4(0x11f)]()}),z[a163_0x2d12a4(0xe9)]({'atMost':z[a163_0x2d12a4(0x11f)]()}),z[a163_0x2d12a4(0xe9)]({'exactly':z[a163_0x2d12a4(0x11f)]()})]);export const AggregationDefSchema=z[a163_0x2d12a4(0x116)](a163_0x2d12a4(0xf2),[z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x109)]([a163_0x2d12a4(0x11c),a163_0x2d12a4(0xf1),a163_0x2d12a4(0x11d),'Average']),'column':z[a163_0x2d12a4(0x115)](),'groupingColumns':z[a163_0x2d12a4(0x128)](z[a163_0x2d12a4(0x115)]())[a163_0x2d12a4(0xf3)]()}),z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0xea)),'groupingColumns':z['array'](z[a163_0x2d12a4(0x115)]())['optional']()}),z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0x10e)),'columns':z[a163_0x2d12a4(0x128)](z[a163_0x2d12a4(0x115)]())}),z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x109)]([a163_0x2d12a4(0x12b),a163_0x2d12a4(0x101)]),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a163_0x2d12a4(0x128)](z[a163_0x2d12a4(0x115)]())[a163_0x2d12a4(0xf3)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a163_0x2d12a4(0x11f)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a163_0x2d12a4(0x132),'TimeWithinNext',a163_0x2d12a4(0x12f)]);export const FilterColumnConditionDefSchema=z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0x103)),'column':z[a163_0x2d12a4(0x115)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a163_0x2d12a4(0xf3)]()})[a163_0x2d12a4(0xed)]((_0x25b431,_0x3c4230)=>{const _0x394dae=a163_0x2d12a4,_0x59f886=_0x25b431['operator'][_0x394dae(0xf2)];_0x25b431[_0x394dae(0x114)]===_0x394dae(0x104)?!TIMESTAMP_OPERATORS[_0x394dae(0x108)](_0x59f886)&&_0x3c4230[_0x394dae(0xf6)]({'code':_0x394dae(0x123),'message':_0x394dae(0x10f)+_0x59f886+'\x27)','path':[_0x394dae(0x111),_0x394dae(0xf2)]}):TIMESTAMP_OPERATORS[_0x394dae(0x108)](_0x59f886)&&_0x3c4230[_0x394dae(0xf6)]({'code':'custom','message':_0x394dae(0xec)+_0x59f886+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x394dae(0x111),'type']});});export const FilterRuleDefSchema=z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0xfc)),'conditions':z[a163_0x2d12a4(0x128)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a163_0x2d12a4(0x120)](()=>z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0x126)),'attribute':z[a163_0x2d12a4(0x115)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a163_0x2d12a4(0xf3)](),'exclude':z[a163_0x2d12a4(0xfa)]()[a163_0x2d12a4(0xf3)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a163_0x2d12a4(0x115)]()[a163_0x2d12a4(0xf3)](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a163_0x2d12a4(0x11f)]()[a163_0x2d12a4(0xf3)]()}));export const BehaviorConditionDefSchema=z[a163_0x2d12a4(0x120)](()=>z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0x12d)),'attribute':z[a163_0x2d12a4(0x115)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a163_0x2d12a4(0xfa)]()['optional'](),'aggregation':AggregationDefSchema[a163_0x2d12a4(0xf3)](),'source':z[a163_0x2d12a4(0x115)]()[a163_0x2d12a4(0xf3)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a163_0x2d12a4(0x11f)]()[a163_0x2d12a4(0xf3)]()}));export const ColumnConditionDefSchema=z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0x103)),'column':z[a163_0x2d12a4(0x115)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a163_0x2d12a4(0x120)](()=>z['object']({'type':z['enum']([a163_0x2d12a4(0xfc),'Or']),'conditions':z[a163_0x2d12a4(0x128)](ConditionDefSchema),'description':z[a163_0x2d12a4(0x115)]()[a163_0x2d12a4(0xf3)]()}));export const SegmentRefConditionDefSchema=z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x109)]([a163_0x2d12a4(0xe8),a163_0x2d12a4(0x102)]),'segment':z[a163_0x2d12a4(0x115)]()[a163_0x2d12a4(0x117)](0x1,a163_0x2d12a4(0x105))});export const ConditionDefSchema=z[a163_0x2d12a4(0x120)](()=>z[a163_0x2d12a4(0x100)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z[a163_0x2d12a4(0x109)](['And','Or']),'conditions':z[a163_0x2d12a4(0x128)](ConditionDefSchema),'description':z[a163_0x2d12a4(0x115)]()['optional']()}));export const SegmentDefSchema=z[a163_0x2d12a4(0xe9)]({'type':z[a163_0x2d12a4(0x118)](a163_0x2d12a4(0xef))[a163_0x2d12a4(0xf3)](),'name':z[a163_0x2d12a4(0x115)]()[a163_0x2d12a4(0x117)](0x1,a163_0x2d12a4(0xf9)),'description':z['string']()[a163_0x2d12a4(0xf3)](),'folder':z[a163_0x2d12a4(0x115)]()[a163_0x2d12a4(0xf3)](),'rule':RuleDefSchema[a163_0x2d12a4(0xf3)](),'kind':z[a163_0x2d12a4(0x109)]([a163_0x2d12a4(0xf0),'realtime',a163_0x2d12a4(0xee)])['optional'](),'visible':z[a163_0x2d12a4(0xfa)]()[a163_0x2d12a4(0xf3)](),'activations':z['array'](z[a163_0x2d12a4(0x124)]())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];function a163_0x5684(_0x54787f,_0x4a9715){_0x54787f=_0x54787f-0xe8;const _0x358ba1=a163_0x358b();let _0x56844d=_0x358ba1[_0x54787f];return _0x56844d;}void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a164_0x1d72ee=a164_0x32c0;(function(_0x5f2a6a,_0x1cb428){const _0x217584=a164_0x32c0,_0x3a5643=_0x5f2a6a();while(!![]){try{const _0x40e732=parseInt(_0x217584(0x1e5))/0x1*(-parseInt(_0x217584(0x1be))/0x2)+-parseInt(_0x217584(0x1c5))/0x3*(-parseInt(_0x217584(0x1de))/0x4)+-parseInt(_0x217584(0x1e2))/0x5*(parseInt(_0x217584(0x1e6))/0x6)+-parseInt(_0x217584(0x1ed))/0x7*(-parseInt(_0x217584(0x1b3))/0x8)+-parseInt(_0x217584(0x1ca))/0x9+-parseInt(_0x217584(0x1a9))/0xa*(parseInt(_0x217584(0x1c8))/0xb)+parseInt(_0x217584(0x1ea))/0xc*(parseInt(_0x217584(0x1df))/0xd);if(_0x40e732===_0x1cb428)break;else _0x3a5643['push'](_0x3a5643['shift']());}catch(_0x4f3c22){_0x3a5643['push'](_0x3a5643['shift']());}}}(a164_0x4d40,0x7b861));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x1d72ee(0x1d3)](['Equal',a164_0x1d72ee(0x1da),a164_0x1d72ee(0x1d6),a164_0x1d72ee(0x1cb),a164_0x1d72ee(0x1eb),'In',a164_0x1d72ee(0x1ae),a164_0x1d72ee(0x1b6),a164_0x1d72ee(0x1a2),a164_0x1d72ee(0x1a4),a164_0x1d72ee(0x1c2),a164_0x1d72ee(0x1ef),a164_0x1d72ee(0x1b5),a164_0x1d72ee(0x1d9),a164_0x1d72ee(0x1ad)]);export const TimeUnitSchema=z['enum']([a164_0x1d72ee(0x1e7),a164_0x1d72ee(0x1b2),'hour',a164_0x1d72ee(0x1e3),a164_0x1d72ee(0x1c3),a164_0x1d72ee(0x1ac),a164_0x1d72ee(0x1cf)]);export const AggregationTypeSchema=z[a164_0x1d72ee(0x1d3)](['Count',a164_0x1d72ee(0x1bb),a164_0x1d72ee(0x1a5),'Min',a164_0x1d72ee(0x1ee),'CountDistinct',a164_0x1d72ee(0x1a6),a164_0x1d72ee(0x1cd)]);const TemporalValueSchema=z['union']([z[a164_0x1d72ee(0x1d1)]({'timestamp':z['string']()}),z[a164_0x1d72ee(0x1d1)]({'last':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1d0)](z['string'](),z['number']())]),'unit':z[a164_0x1d72ee(0x1a7)]()})]),OperatorValueSchema=z['union']([z[a164_0x1d72ee(0x1a7)](),z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1d2)](),TemporalValueSchema,z['array'](z[a164_0x1d72ee(0x1c4)]([z['string'](),z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1d2)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x1d72ee(0x1ba),a164_0x1d72ee(0x1da),a164_0x1d72ee(0x1cb),a164_0x1d72ee(0x1d6),a164_0x1d72ee(0x1eb),'In',a164_0x1d72ee(0x1ef),a164_0x1d72ee(0x1b5),'EndWith',a164_0x1d72ee(0x1b6),a164_0x1d72ee(0x1a4),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast','TimeWithinNext']);export const OperatorDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':OperatorTypeSchema,'not':z[a164_0x1d72ee(0x1d2)]()['optional'](),'value':OperatorValueSchema['optional'](),'min':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1a7)](),TemporalValueSchema])['optional'](),'max':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1a7)](),TemporalValueSchema])[a164_0x1d72ee(0x1cc)](),'unit':TimeUnitSchema['optional'](),'duration':z[a164_0x1d72ee(0x1d1)]({'day':z['number']()[a164_0x1d72ee(0x1cc)](),'week':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)](),'month':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)](),'year':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)](),'hour':z['number']()['optional'](),'minute':z[a164_0x1d72ee(0x1ce)]()['optional'](),'second':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)]()})['optional'](),'from':z[a164_0x1d72ee(0x1d1)]({'last':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x1d72ee(0x1d2)]()[a164_0x1d72ee(0x1cc)]()})['superRefine']((_0x17a36c,_0xb196a2)=>{const _0x86d6c6=a164_0x1d72ee;OPERATORS_REQUIRING_VALUE[_0x86d6c6(0x1b4)](_0x17a36c[_0x86d6c6(0x1bc)])&&(_0x17a36c[_0x86d6c6(0x1db)]===undefined||_0x17a36c[_0x86d6c6(0x1db)]===null)&&_0xb196a2['addIssue']({'code':'custom','message':_0x86d6c6(0x1d7)+_0x17a36c[_0x86d6c6(0x1bc)]+_0x86d6c6(0x1c6),'path':[_0x86d6c6(0x1db)]}),_0x17a36c[_0x86d6c6(0x1bc)]===_0x86d6c6(0x1ae)&&_0x17a36c['min']===undefined&&_0x17a36c[_0x86d6c6(0x1b7)]===undefined&&_0xb196a2['addIssue']({'code':_0x86d6c6(0x1c9),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0x86d6c6(0x1e4)}}),OPERATORS_REQUIRING_UNIT['has'](_0x17a36c['type'])&&_0x17a36c[_0x86d6c6(0x1db)]!==undefined&&!_0x17a36c['unit']&&_0xb196a2[_0x86d6c6(0x1c1)]({'code':_0x86d6c6(0x1c9),'message':'Operator\x20\x27'+_0x17a36c['type']+_0x86d6c6(0x1d8),'path':['unit'],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x17a36c['type']===_0x86d6c6(0x1ad)&&(!_0x17a36c[_0x86d6c6(0x1a8)]&&_0xb196a2['addIssue']({'code':_0x86d6c6(0x1c9),'message':_0x86d6c6(0x1d5),'path':[_0x86d6c6(0x1a8)]}),!_0x17a36c['from']&&_0xb196a2[_0x86d6c6(0x1c1)]({'code':_0x86d6c6(0x1c9),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':['from']}));});export const ArrayMatchingSchema=z['union']([z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1bd)),z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1e8)),z['object']({'atLeast':z['number']()}),z['object']({'atMost':z[a164_0x1d72ee(0x1ce)]()}),z[a164_0x1d72ee(0x1d1)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x1d72ee(0x1e9)](a164_0x1d72ee(0x1bc),[z['object']({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1bb),'Min',a164_0x1d72ee(0x1ee),a164_0x1d72ee(0x1a5)]),'column':z['string'](),'groupingColumns':z['array'](z[a164_0x1d72ee(0x1a7)]())['optional']()}),z[a164_0x1d72ee(0x1d1)]({'type':z['literal'](a164_0x1d72ee(0x1dc)),'groupingColumns':z[a164_0x1d72ee(0x1ab)](z['string']())[a164_0x1d72ee(0x1cc)]()}),z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1dd)),'columns':z[a164_0x1d72ee(0x1ab)](z[a164_0x1d72ee(0x1a7)]())}),z[a164_0x1d72ee(0x1d1)]({'type':z['enum']([a164_0x1d72ee(0x1a6),a164_0x1d72ee(0x1cd)]),'column':z[a164_0x1d72ee(0x1a7)](),'orderColumn':z[a164_0x1d72ee(0x1a7)](),'groupingColumns':z[a164_0x1d72ee(0x1ab)](z[a164_0x1d72ee(0x1a7)]())['optional']()})]);export const TimeWindowDefSchema=z[a164_0x1d72ee(0x1d1)]({'duration':z[a164_0x1d72ee(0x1ce)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x1d72ee(0x1a4),a164_0x1d72ee(0x1c2),a164_0x1d72ee(0x1ad)]);export const FilterColumnConditionDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z['literal'](a164_0x1d72ee(0x1a1)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1d72ee(0x1cc)]()})['superRefine']((_0x49cc22,_0x155c9f)=>{const _0x50bb71=a164_0x1d72ee,_0x355e30=_0x49cc22[_0x50bb71(0x1aa)][_0x50bb71(0x1bc)];_0x49cc22[_0x50bb71(0x1bf)]===_0x50bb71(0x1af)?!TIMESTAMP_OPERATORS[_0x50bb71(0x1b4)](_0x355e30)&&_0x155c9f[_0x50bb71(0x1c1)]({'code':_0x50bb71(0x1c9),'message':_0x50bb71(0x1b9)+_0x355e30+'\x27)','path':[_0x50bb71(0x1aa),_0x50bb71(0x1bc)]}):TIMESTAMP_OPERATORS[_0x50bb71(0x1b4)](_0x355e30)&&_0x155c9f[_0x50bb71(0x1c1)]({'code':_0x50bb71(0x1c9),'message':_0x50bb71(0x1d7)+_0x355e30+_0x50bb71(0x1b0),'path':[_0x50bb71(0x1aa),'type']});});export const FilterRuleDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1a3)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1ec)),'attribute':z[a164_0x1d72ee(0x1a7)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1d72ee(0x1cc)](),'exclude':z[a164_0x1d72ee(0x1d2)]()[a164_0x1d72ee(0x1cc)](),'aggregation':AggregationDefSchema[a164_0x1d72ee(0x1cc)](),'source':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1cc)](),'filter':FilterRuleDefSchema[a164_0x1d72ee(0x1cc)](),'limit':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)]()}));function a164_0x4d40(){const _0x51650f=['duration','10fgBEVQ','operator','array','month','TimeRange','Between','timestamp','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Behavior','minute','593824kVJVhP','has','StartWith','Regexp','max','lazy','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Equal','Sum','type','any','511504ToEaBU','column','realtime','addIssue','TimeWithinNext','week','union','105069PDpxhl','\x27\x20requires\x20a\x20value','include','2103937OfqeNG','custom','2787831lGbYMJ','GreaterEqual','optional','Last','number','year','record','object','boolean','enum','funnel_stage','TimeRange\x20operator\x20requires\x20\x27duration\x27','Less','Operator\x20\x27','\x27\x20requires\x20a\x20time\x20unit','EndWith','Greater','value','Count','CountDistinct','44undAwx','1859NlivYR','literal','min','240KAxUIW','day','MISSING_BETWEEN_BOUNDS','2OfjPOK','101592buJhvu','second','all','discriminatedUnion','150840MiMFqc','LessEqual','Value','14zNkSmN','Max','Contain','Column','IsNull','And','TimeWithinPast','Average','First','string'];a164_0x4d40=function(){return _0x51650f;};return a164_0x4d40();}export const BehaviorConditionDefSchema=z['lazy'](()=>z['object']({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1b1)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1d72ee(0x1cc)](),'exclude':z[a164_0x1d72ee(0x1d2)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x1d72ee(0x1a7)]()['optional'](),'filter':FilterRuleDefSchema[a164_0x1d72ee(0x1cc)](),'timeWindow':TimeWindowDefSchema[a164_0x1d72ee(0x1cc)](),'limit':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1a1)),'column':z[a164_0x1d72ee(0x1a7)](),'operator':OperatorDefSchema});function a164_0x32c0(_0xa01e36,_0x10090e){_0xa01e36=_0xa01e36-0x1a1;const _0x4d406b=a164_0x4d40();let _0x32c05a=_0x4d406b[_0xa01e36];return _0x32c05a;}export const CompositeConditionDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1a3),'Or']),'conditions':z[a164_0x1d72ee(0x1ab)](ConditionDefSchema),'description':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1cc)]()}));export const SegmentRefConditionDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1c7),'exclude']),'segment':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1e1)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1c4)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1a3),'Or']),'conditions':z[a164_0x1d72ee(0x1ab)](ConditionDefSchema),'description':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1cc)]()}));export const SegmentDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)]('segment')[a164_0x1d72ee(0x1cc)](),'name':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1e1)](0x1,'Segment\x20name\x20is\x20required'),'description':z['string']()['optional'](),'folder':z[a164_0x1d72ee(0x1a7)]()['optional'](),'rule':RuleDefSchema[a164_0x1d72ee(0x1cc)](),'kind':z[a164_0x1d72ee(0x1d3)](['batch',a164_0x1d72ee(0x1c0),a164_0x1d72ee(0x1d4)])[a164_0x1d72ee(0x1cc)](),'visible':z['boolean']()[a164_0x1d72ee(0x1cc)](),'activations':z[a164_0x1d72ee(0x1ab)](z['any']())[a164_0x1d72ee(0x1cc)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x1ff3b5=a165_0x5c89;(function(_0x5bed62,_0x424c6c){const _0x3925cd=a165_0x5c89,_0x1dfc6c=_0x5bed62();while(!![]){try{const _0x57758f=parseInt(_0x3925cd(0x1ce))/0x1*(parseInt(_0x3925cd(0x1d3))/0x2)+-parseInt(_0x3925cd(0x1d9))/0x3*(-parseInt(_0x3925cd(0x1bd))/0x4)+parseInt(_0x3925cd(0x1d2))/0x5*(-parseInt(_0x3925cd(0x1c6))/0x6)+parseInt(_0x3925cd(0x1cf))/0x7*(parseInt(_0x3925cd(0x1ca))/0x8)+parseInt(_0x3925cd(0x1bc))/0x9+-parseInt(_0x3925cd(0x1d6))/0xa+parseInt(_0x3925cd(0x1c8))/0xb*(-parseInt(_0x3925cd(0x1d0))/0xc);if(_0x57758f===_0x424c6c)break;else _0x1dfc6c['push'](_0x1dfc6c['shift']());}catch(_0x37e9e0){_0x1dfc6c['push'](_0x1dfc6c['shift']());}}}(a165_0x119d,0x2c856));import{readFileSync}from'fs';import*as a165_0x1339c7 from'path';import*as a165_0x341f9b 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_0x1ff3b5(0x1c2),a165_0x1ff3b5(0x1db)]);export function isJourneyDef(_0xbbe11e){const _0x28aacb=a165_0x1ff3b5;return typeof _0xbbe11e===_0x28aacb(0x1c9)&&_0xbbe11e!==null&&_0x28aacb(0x1c0)in _0xbbe11e&&_0xbbe11e['type']===_0x28aacb(0x1d5);}export function isCampaignDef(_0x2c7ecb){const _0x4f7edd=a165_0x1ff3b5;if(typeof _0x2c7ecb!==_0x4f7edd(0x1c9)||_0x2c7ecb===null)return![];const _0x4c58d6=_0x2c7ecb,_0x4110e8=VALID_CAMPAIGN_TYPES['has'](_0x4c58d6['campaign_type']);if(_0x4c58d6['type']===_0x4f7edd(0x1da)&&_0x4110e8)return!![];if(_0x4110e8&&!_0x4c58d6[_0x4f7edd(0x1c0)])return!![];return![];}function a165_0x5c89(_0x2142ed,_0x1fe36f){_0x2142ed=_0x2142ed-0x1bc;const _0x119dc9=a165_0x119d();let _0x5c899e=_0x119dc9[_0x2142ed];return _0x5c899e;}function a165_0x119d(){const _0x4d56b1=['toJSON','length','776478CxqWnC','relative','3421owJYKj','object','112pgSnEN','message','map','segment','21687ZuWyZo','170576SCeiYr','19620lpHmQj','valid','5oKEqrS','30nzSAGD','parseDocument','journey','266380eoVbYS','YAML\x20parse\x20error:\x20','filterType','5046gTQZoL','campaign','push','not\x20a\x20','609687zIxgcj','268fyuzud','result','template','type','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','email','YAML_PARSE_ERROR'];a165_0x119d=function(){return _0x4d56b1;};return a165_0x119d();}export function isTemplateDef(_0x3729d7){const _0x1634a1=a165_0x1ff3b5;return typeof _0x3729d7===_0x1634a1(0x1c9)&&_0x3729d7!==null&&_0x1634a1(0x1c0)in _0x3729d7&&_0x3729d7['type']==='template';}export function isValidationResult(_0x56d3bf){return!('skipped'in _0x56d3bf);}export function createParseErrorResult(_0x4e5a1a,_0x8faa75,_0x20cc93,_0x3ab929,_0x1cf1ec=a165_0x1ff3b5(0x1cd)){const _0x4816a0=a165_0x1ff3b5;return{'filePath':_0x4e5a1a,'relativePath':_0x8faa75,'source':_0x20cc93,'result':{'valid':![],'errors':[{'level':'error','path':'','code':_0x4816a0(0x1c3),'message':_0x3ab929}],'warnings':[]},'fileType':_0x1cf1ec};}export function validateYamlFile(_0x5d9f2e,_0x4ba853,_0x2a06d8={}){const _0x1d41cf=a165_0x1ff3b5,_0x43f99d=a165_0x1339c7[_0x1d41cf(0x1c7)](_0x4ba853,_0x5d9f2e)||a165_0x1339c7['basename'](_0x5d9f2e);try{const _0x530d82=readFileSync(_0x5d9f2e,'utf-8'),_0xdf72a=a165_0x341f9b[_0x1d41cf(0x1d4)](_0x530d82),_0x1fa47c=_0xdf72a[_0x1d41cf(0x1c4)]();if(!_0x1fa47c)return createParseErrorResult(_0x5d9f2e,_0x43f99d,_0x530d82,_0x1d41cf(0x1c1));let _0x4c4621;if(isJourneyDef(_0x1fa47c))_0x4c4621='journey';else{if(isCampaignDef(_0x1fa47c))_0x4c4621=_0x1d41cf(0x1da);else isTemplateDef(_0x1fa47c)?_0x4c4621=_0x1d41cf(0x1bf):_0x4c4621='segment';}if(_0x2a06d8[_0x1d41cf(0x1d8)]&&_0x4c4621!==_0x2a06d8['filterType'])return{'filePath':_0x5d9f2e,'relativePath':_0x43f99d,'skipped':!![],'reason':_0x1d41cf(0x1dc)+_0x2a06d8[_0x1d41cf(0x1d8)]};const _0x1efa4f={'source':_0x530d82,'document':_0xdf72a};let _0x4d59b0;if(_0x4c4621===_0x1d41cf(0x1d5))_0x4d59b0=validateJourneyDef(_0x1fa47c,_0x1efa4f);else{if(_0x4c4621===_0x1d41cf(0x1da))_0x4d59b0=validateCampaignDef(_0x1fa47c,_0x1efa4f);else _0x4c4621===_0x1d41cf(0x1bf)?_0x4d59b0=validateTemplateDef(_0x1fa47c,_0x1efa4f):_0x4d59b0=validateSegmentDef(_0x1fa47c,_0x1efa4f);}return{'filePath':_0x5d9f2e,'relativePath':_0x43f99d,'source':_0x530d82,'result':_0x4d59b0,'fileType':_0x4c4621};}catch(_0x2d22e3){const _0x569f76=_0x2d22e3 instanceof Error?_0x2d22e3[_0x1d41cf(0x1cb)]:String(_0x2d22e3);return createParseErrorResult(_0x5d9f2e,_0x43f99d,'',_0x1d41cf(0x1d7)+_0x569f76);}}export function validateYamlFiles(_0x3878d2,_0x34ea61,_0x2a1be2={}){const _0x116e90=a165_0x1ff3b5;return _0x3878d2[_0x116e90(0x1cc)](_0xda01b1=>validateYamlFile(_0xda01b1,_0x34ea61,_0x2a1be2));}export function calculateSummary(_0x3068a4){const _0x4479a6=a165_0x1ff3b5;let _0x30b33a=0x0,_0x77b9c=0x0,_0x534491=0x0,_0x4346c6=0x0;for(const _0x522ea1 of _0x3068a4){if(!isValidationResult(_0x522ea1)){_0x4346c6++;continue;}_0x522ea1[_0x4479a6(0x1be)][_0x4479a6(0x1d1)]?_0x30b33a++:_0x77b9c++,_0x534491+=_0x522ea1[_0x4479a6(0x1be)]['warnings'][_0x4479a6(0x1c5)];}return{'validCount':_0x30b33a,'invalidCount':_0x77b9c,'warningCount':_0x534491,'skippedCount':_0x4346c6,'hasErrors':_0x77b9c>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x162e11,_0x53bfd3){const _0x24903f=a166_0x2770,_0x856454=_0x162e11();while(!![]){try{const _0x5ee436=-parseInt(_0x24903f(0x134))/0x1+parseInt(_0x24903f(0x14d))/0x2+-parseInt(_0x24903f(0x133))/0x3*(-parseInt(_0x24903f(0x147))/0x4)+parseInt(_0x24903f(0x13f))/0x5*(-parseInt(_0x24903f(0x130))/0x6)+-parseInt(_0x24903f(0x12f))/0x7*(-parseInt(_0x24903f(0x13b))/0x8)+-parseInt(_0x24903f(0x13c))/0x9+parseInt(_0x24903f(0x127))/0xa*(parseInt(_0x24903f(0x141))/0xb);if(_0x5ee436===_0x53bfd3)break;else _0x856454['push'](_0x856454['shift']());}catch(_0x32dc56){_0x856454['push'](_0x856454['shift']());}}}(a166_0x1cc4,0x38bd3));import*as a166_0x9cdffc from'yaml';import a166_0x353bcd from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a166_0x1cc4(){const _0x24a524=['584155ySMFEt','repeat','invalid_union','message','level','parse','18672blAAEU','path','success','match','line','object','906246XayqBD','issues','range','min','max','code','push','YAML\x20validation\x20error:\x20','location','column','10OLHqXh','safeParse','red','cyan','warnings','errors','length','getIn','168qRvKZv','894wBiuqY','toString','split','3AsHrzO','208306oVObfF','number','dim','error','yellow','data','Invalid\x20YAML:\x20expected\x20an\x20object','119128bmIOaa','2784726fbcoJn','map','join','3965nKxEkE','\x20|\x20'];a166_0x1cc4=function(){return _0x24a524;};return a166_0x1cc4();}export function getLocationFromPath(_0x806e87,_0x58bf65,_0x4e2c2c){const _0x52d3d3=a166_0x2770;if(!_0x806e87||!_0x58bf65)return undefined;try{let _0x1cb0fc=_0x806e87[_0x52d3d3(0x12e)](_0x4e2c2c,!![]),_0x351c8f=[..._0x4e2c2c];while((!_0x1cb0fc||typeof _0x1cb0fc!==_0x52d3d3(0x14c)||!(_0x52d3d3(0x11f)in _0x1cb0fc)||!_0x1cb0fc[_0x52d3d3(0x11f)])&&_0x351c8f[_0x52d3d3(0x12d)]>0x0){_0x351c8f['pop'](),_0x1cb0fc=_0x351c8f[_0x52d3d3(0x12d)]>0x0?_0x806e87[_0x52d3d3(0x12e)](_0x351c8f,!![]):_0x806e87['contents'];}if(!_0x1cb0fc||typeof _0x1cb0fc!==_0x52d3d3(0x14c)||!(_0x52d3d3(0x11f)in _0x1cb0fc)||!_0x1cb0fc['range'])return undefined;const [_0x1be1a7]=_0x1cb0fc[_0x52d3d3(0x11f)];return offsetToLocation(_0x58bf65,_0x1be1a7);}catch{return undefined;}}export function offsetToLocation(_0x2aad77,_0x11b1b3){const _0x4f8073=a166_0x2770;let _0x2ec364=0x1,_0x38fa22=0x1;for(let _0x153b4f=0x0;_0x153b4f<_0x11b1b3&&_0x153b4f<_0x2aad77[_0x4f8073(0x12d)];_0x153b4f++){_0x2aad77[_0x153b4f]==='\x0a'?(_0x2ec364++,_0x38fa22=0x1):_0x38fa22++;}return{'line':_0x2ec364,'column':_0x38fa22,'offset':_0x11b1b3};}export function pathToArray(_0x15014f){const _0x48b3d8=a166_0x2770;if(!_0x15014f)return[];return _0x15014f[_0x48b3d8(0x132)]('.')['flatMap'](_0x15fcf3=>{const _0x203688=_0x48b3d8,_0x36fc4d=_0x15fcf3[_0x203688(0x14a)](/^(\w+)\[(\d+)\]$/);if(_0x36fc4d)return[_0x36fc4d[0x1],parseInt(_0x36fc4d[0x2],0xa)];return[_0x15fcf3];});}export function formatZodPath(_0x55a56b){const _0x589b76=a166_0x2770;let _0x367307='';for(const _0x565c6b of _0x55a56b){if(typeof _0x565c6b===_0x589b76(0x135))_0x367307+='['+_0x565c6b+']';else{const _0x5344e5=String(_0x565c6b);_0x367307+=_0x367307?'.'+_0x5344e5:_0x5344e5;}}return _0x367307;}export function flattenZodIssues(_0x49b813){const _0x5cb488=a166_0x2770,_0x370773=[];for(const _0x292124 of _0x49b813){if(_0x292124['code']===_0x5cb488(0x143)&&'errors'in _0x292124){const _0x410f61=_0x292124[_0x5cb488(0x12c)];let _0x128168=_0x410f61[0x0]||[];for(const _0x2adf88 of _0x410f61){_0x2adf88[_0x5cb488(0x12d)]<_0x128168[_0x5cb488(0x12d)]&&(_0x128168=_0x2adf88);}const _0xb9786f=_0x128168[_0x5cb488(0x13d)](_0x246741=>({..._0x246741,'path':[..._0x292124[_0x5cb488(0x148)],..._0x246741[_0x5cb488(0x148)]]}));_0x370773[_0x5cb488(0x123)](...flattenZodIssues(_0xb9786f));}else _0x370773['push'](_0x292124);}return _0x370773;}function a166_0x2770(_0x1ee650,_0x5a37cc){_0x1ee650=_0x1ee650-0x11e;const _0x1cc44c=a166_0x1cc4();let _0x2770bf=_0x1cc44c[_0x1ee650];return _0x2770bf;}export function safeParseYaml(_0x297897,_0x264205){const _0xd1f0f0=a166_0x2770,_0x1d98f4=a166_0x9cdffc[_0xd1f0f0(0x146)](_0x297897);if(!_0x1d98f4||typeof _0x1d98f4!=='object')throw new Error(_0xd1f0f0(0x13a));const _0x41f75b=_0x264205[_0xd1f0f0(0x128)](_0x1d98f4);if(!_0x41f75b[_0xd1f0f0(0x149)]){const _0x68a21=_0x41f75b[_0xd1f0f0(0x137)][_0xd1f0f0(0x11e)][0x0],_0x5d8109=formatZodPath(_0x68a21[_0xd1f0f0(0x148)]);throw new Error(_0x5d8109?'YAML\x20validation\x20error\x20at\x20\x27'+_0x5d8109+'\x27:\x20'+_0x68a21['message']:_0xd1f0f0(0x124)+_0x68a21[_0xd1f0f0(0x144)]);}return _0x41f75b[_0xd1f0f0(0x139)];}export function formatIssueWithContext(_0x5e63bd,_0x9cfa1c,_0x3af8e7){const _0x423d3a=a166_0x2770,_0x45650e=[],_0x93ee8d=_0x5e63bd['level']===_0x423d3a(0x137),_0x2df5a3=_0x93ee8d?a166_0x353bcd[_0x423d3a(0x129)]:a166_0x353bcd['yellow'],_0x573d93=_0x93ee8d?a166_0x353bcd[_0x423d3a(0x129)]:a166_0x353bcd[_0x423d3a(0x138)],_0x5b88d4=_0x3af8e7?a166_0x353bcd[_0x423d3a(0x12a)](_0x3af8e7+':'):'';if(_0x5e63bd[_0x423d3a(0x125)]){const _0x3c8841=a166_0x353bcd[_0x423d3a(0x12a)](_0x5e63bd[_0x423d3a(0x125)][_0x423d3a(0x14b)]+':'+_0x5e63bd[_0x423d3a(0x125)][_0x423d3a(0x126)]);_0x45650e[_0x423d3a(0x123)](''+_0x5b88d4+_0x3c8841+':\x20'+_0x2df5a3(_0x5e63bd['level'])+'\x20'+_0x573d93('['+_0x5e63bd[_0x423d3a(0x122)]+']'));}else _0x45650e[_0x423d3a(0x123)](''+_0x5b88d4+a166_0x353bcd['dim'](_0x5e63bd[_0x423d3a(0x148)])+':\x20'+_0x2df5a3(_0x5e63bd[_0x423d3a(0x145)])+'\x20'+_0x573d93('['+_0x5e63bd[_0x423d3a(0x122)]+']'));_0x45650e['push'](_0x5e63bd[_0x423d3a(0x144)]);if(_0x5e63bd[_0x423d3a(0x125)]&&_0x9cfa1c){const _0x282dd2=_0x9cfa1c['split']('\x0a'),{line:_0x525bbb,column:_0xa05875}=_0x5e63bd['location'],_0x4ae84c=Math[_0x423d3a(0x121)](0x1,_0x525bbb-0x1),_0x3d7460=Math[_0x423d3a(0x120)](_0x282dd2[_0x423d3a(0x12d)],_0x525bbb+0x1);_0x45650e[_0x423d3a(0x123)]('');for(let _0x635a3f=_0x4ae84c;_0x635a3f<=_0x3d7460;_0x635a3f++){const _0x376500=_0x282dd2[_0x635a3f-0x1]||'',_0x4d61ce=a166_0x353bcd[_0x423d3a(0x136)](_0x635a3f[_0x423d3a(0x131)]()['padStart'](0x4)),_0x32cecd=a166_0x353bcd[_0x423d3a(0x136)](_0x423d3a(0x140));if(_0x635a3f===_0x525bbb){_0x45650e['push']('\x20\x20'+_0x4d61ce+_0x32cecd+_0x2df5a3(_0x376500));const _0xf1c2d1='\x20'[_0x423d3a(0x142)](0x4+0x3+_0xa05875-0x1);_0x45650e['push']('\x20\x20'+_0xf1c2d1+_0x2df5a3('^'));}else _0x45650e[_0x423d3a(0x123)]('\x20\x20'+_0x4d61ce+_0x32cecd+a166_0x353bcd[_0x423d3a(0x136)](_0x376500));}}return _0x45650e[_0x423d3a(0x13e)]('\x0a');}export function formatValidationResult(_0x168a56,_0x479c58,_0x4c1168){const _0x16ebd2=a166_0x2770,_0x33163a=[];for(const _0x3ae95f of _0x168a56['errors']){_0x33163a[_0x16ebd2(0x123)](formatIssueWithContext(_0x3ae95f,_0x479c58,_0x4c1168)),_0x33163a[_0x16ebd2(0x123)]('');}for(const _0xe9cf8a of _0x168a56[_0x16ebd2(0x12b)]){_0x33163a[_0x16ebd2(0x123)](formatIssueWithContext(_0xe9cf8a,_0x479c58,_0x4c1168)),_0x33163a['push']('');}return _0x33163a[_0x16ebd2(0x13e)]('\x0a');}
|