@treasuredata/tdx 2026.3.21 → 2026.3.23
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/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/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/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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a5b4c,_0x3b2bda){const _0x23dd48=a146_0x5a4f,_0x51ab40=_0x2a5b4c();while(!![]){try{const _0x4c2186=-parseInt(_0x23dd48(0x131))/0x1+-parseInt(_0x23dd48(0x13c))/0x2*(parseInt(_0x23dd48(0x129))/0x3)+-parseInt(_0x23dd48(0x158))/0x4*(-parseInt(_0x23dd48(0x12e))/0x5)+parseInt(_0x23dd48(0x138))/0x6+-parseInt(_0x23dd48(0x124))/0x7+parseInt(_0x23dd48(0x12c))/0x8*(-parseInt(_0x23dd48(0x120))/0x9)+parseInt(_0x23dd48(0x122))/0xa;if(_0x4c2186===_0x3b2bda)break;else _0x51ab40['push'](_0x51ab40['shift']());}catch(_0x52eeed){_0x51ab40['push'](_0x51ab40['shift']());}}}(a146_0x2e35,0xf14ee));function a146_0x2e35(){const _0x23ea33=['BEHAVIOR_SOURCE_MISSING_FILTER','warning','error','2024076aeHGSC','length','rule.type','.type','2oSUsQP','MISSING_NAME','MISSING_OPERATOR_VALUE','MISSING_BETWEEN_BOUNDS','SEGMENT_SCHEMA_ERROR','skipSchema','Attribute\x20name\x20cannot\x20be\x20empty','.conditions','type','.conditions[','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','data','map','source','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','.attribute','conditions','And','push','validationCode','INVALID_OPERATOR_TYPE','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','invalid_value','endsWith','code','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','14844uvXPjy','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','safeParse','path','\x27\x20with\x20attribute\x20\x27','.operator.value','rule','level','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','params','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','MISSING_CONDITIONS','171IkoneP','INVALID_RULE_TYPE','32837670qJpBeP','.source','4476619FttqyG','document','filter','name','.segment','3558471ftwVan','INVALID_ARRAY_MATCHING','.operator.type','527568sdsLVZ','EMPTY_CONDITIONS','1230qSMGgy','attribute','issues','466973CZOcBQ','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','success','NESTED_CONDITION_GROUP'];a146_0x2e35=function(){return _0x23ea33;};return a146_0x2e35();}import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x1c523c,_0x32c2ff={},_0x21e66c={}){const _0x429718=a146_0x5a4f;if(_0x21e66c[_0x429718(0x141)])return runSemanticChecks(_0x1c523c,_0x32c2ff);const _0x584de6=SegmentDefSchema[_0x429718(0x115)](_0x1c523c);if(_0x584de6['success'])return runSemanticChecks(_0x584de6[_0x429718(0x148)],_0x32c2ff);return zodErrorsToValidationResult(_0x584de6[_0x429718(0x137)],_0x32c2ff);}export function validateRuleDef(_0x240277,_0x299a93,_0x1ff43e){const _0x35286b=a146_0x5a4f;if(!_0x240277)return[];const _0x5de52a=RuleDefSchema[_0x35286b(0x115)](_0x240277);if(_0x5de52a[_0x35286b(0x133)])return checkRule(_0x5de52a[_0x35286b(0x148)],_0x299a93,_0x1ff43e);const _0x317ae5=flattenZodIssues(_0x5de52a['error']['issues']);return _0x317ae5[_0x35286b(0x149)](_0x4a8056=>{const _0x199091=_0x35286b,_0x438462=formatZodPath(_0x4a8056[_0x199091(0x116)]),_0x311fbf=_0x438462?_0x299a93+'.'+_0x438462:_0x299a93,_0x3768e7=mapZodIssueToCode(_0x4a8056,_0x438462),_0x2388da=getLocationFromPath(_0x1ff43e[_0x199091(0x125)],_0x1ff43e['source'],pathToArray(_0x311fbf));return{'level':_0x199091(0x137),'path':_0x311fbf,'code':_0x3768e7,'message':_0x4a8056['message'],..._0x2388da&&{'location':_0x2388da}};});}function zodErrorsToValidationResult(_0x3a6325,_0xc4dcfa){const _0x4adeb3=a146_0x5a4f,_0x1f37a1=flattenZodIssues(_0x3a6325[_0x4adeb3(0x130)]),_0x3eff51=_0x1f37a1[_0x4adeb3(0x149)](_0xb0c627=>{const _0x372ea9=_0x4adeb3,_0x24b682=formatZodPath(_0xb0c627['path']),_0x3c19ce=mapZodIssueToCode(_0xb0c627,_0x24b682),_0x55242d=getLocationFromPath(_0xc4dcfa[_0x372ea9(0x125)],_0xc4dcfa['source'],_0xb0c627[_0x372ea9(0x116)][_0x372ea9(0x149)](_0x5ef382=>typeof _0x5ef382==='symbol'?String(_0x5ef382):_0x5ef382));return{'level':_0x372ea9(0x137),'path':_0x24b682,'code':_0x3c19ce,'message':_0xb0c627['message'],..._0x55242d&&{'location':_0x55242d}};});return{'valid':![],'errors':_0x3eff51,'warnings':[]};}function mapZodIssueToCode(_0x57531f,_0x17541c){const _0x2c9ed6=a146_0x5a4f,_0x7042d=_0x57531f[_0x2c9ed6(0x156)]==='custom'?_0x57531f[_0x2c9ed6(0x11d)]:undefined;if(_0x17541c===_0x2c9ed6(0x127))return _0x2c9ed6(0x13d);if(_0x17541c===_0x2c9ed6(0x13a)||_0x17541c[_0x2c9ed6(0x155)](_0x2c9ed6(0x13b))){if(_0x57531f[_0x2c9ed6(0x156)]===_0x2c9ed6(0x154)){if(_0x17541c===_0x2c9ed6(0x13a)||_0x17541c['match'](/\.conditions\[\d+\]\.type$/))return _0x2c9ed6(0x121);}}if(_0x17541c[_0x2c9ed6(0x155)](_0x2c9ed6(0x12b)))return _0x2c9ed6(0x152);if(_0x17541c['endsWith'](_0x2c9ed6(0x118)))return _0x2c9ed6(0x13e);if(_0x7042d?.[_0x2c9ed6(0x151)]==='MISSING_BETWEEN_BOUNDS')return _0x2c9ed6(0x13f);if(_0x7042d?.[_0x2c9ed6(0x151)]==='MISSING_TIME_UNIT')return'MISSING_TIME_UNIT';if(_0x17541c[_0x2c9ed6(0x155)](_0x2c9ed6(0x143))||_0x17541c===_0x2c9ed6(0x14e))return _0x2c9ed6(0x11f);if(_0x17541c['includes']('arrayMatching'))return _0x2c9ed6(0x12a);if(_0x17541c[_0x2c9ed6(0x155)](_0x2c9ed6(0x128)))return'MISSING_SEGMENT_REFERENCE';return _0x2c9ed6(0x140);}function runSemanticChecks(_0x5eb536,_0x452a2b){const _0x5be887=a146_0x5a4f,_0x1bccb5=[];_0x5eb536[_0x5be887(0x119)]&&_0x1bccb5[_0x5be887(0x150)](...checkRule(_0x5eb536[_0x5be887(0x119)],_0x5be887(0x119),_0x452a2b));const _0x5264c0=_0x1bccb5[_0x5be887(0x126)](_0x6fc421=>_0x6fc421['level']===_0x5be887(0x137)),_0x90ec8f=_0x1bccb5[_0x5be887(0x126)](_0x1df4db=>_0x1df4db[_0x5be887(0x11a)]===_0x5be887(0x136));return{'valid':_0x5264c0[_0x5be887(0x139)]===0x0,'errors':_0x5264c0,'warnings':_0x90ec8f};}function a146_0x5a4f(_0x277f84,_0x3fa10c){_0x277f84=_0x277f84-0x115;const _0x2e35dd=a146_0x2e35();let _0x5a4f25=_0x2e35dd[_0x277f84];return _0x5a4f25;}function checkRule(_0x5d32f9,_0x49973b,_0x400199){const _0x5a6f49=a146_0x5a4f,_0x123896=[];if(_0x5d32f9[_0x5a6f49(0x14e)]['length']===0x0)return _0x123896['push']({'level':_0x5a6f49(0x137),'path':_0x49973b+_0x5a6f49(0x143),'code':_0x5a6f49(0x12d),'message':_0x5a6f49(0x14b),'location':getLocationFromPath(_0x400199[_0x5a6f49(0x125)],_0x400199[_0x5a6f49(0x14a)],pathToArray(_0x49973b+_0x5a6f49(0x143)))}),_0x123896;return _0x123896['push'](...checkConditions(_0x5d32f9['conditions'],_0x49973b,_0x400199)),_0x123896;}function checkConditions(_0x22ee03,_0x1d596c,_0xdacc6c){const _0x2acb12=a146_0x5a4f,_0x3833a3=[];for(let _0x580605=0x0;_0x580605<_0x22ee03['length'];_0x580605++){const _0x1004c5=_0x22ee03[_0x580605],_0xfa4802=_0x1d596c+_0x2acb12(0x145)+_0x580605+']';_0x3833a3[_0x2acb12(0x150)](...checkCondition(_0x1004c5,_0xfa4802,_0xdacc6c));}return _0x3833a3;}function checkCondition(_0x9d1fb8,_0x3616e4,_0x40507d){const _0x59b488=a146_0x5a4f,_0x4c3084=[];if(_0x9d1fb8[_0x59b488(0x144)]===_0x59b488(0x14f)||_0x9d1fb8[_0x59b488(0x144)]==='Or')return _0x9d1fb8[_0x59b488(0x14e)][_0x59b488(0x139)]===0x0?_0x4c3084[_0x59b488(0x150)]({'level':_0x59b488(0x137),'path':_0x3616e4+'.conditions','code':_0x59b488(0x12d),'message':_0x9d1fb8[_0x59b488(0x144)]+_0x59b488(0x11b),'location':getLocationFromPath(_0x40507d[_0x59b488(0x125)],_0x40507d[_0x59b488(0x14a)],pathToArray(_0x3616e4+'.conditions'))}):(_0x4c3084[_0x59b488(0x150)]({'level':_0x59b488(0x136),'path':_0x3616e4,'code':_0x59b488(0x134),'message':_0x9d1fb8[_0x59b488(0x144)]+_0x59b488(0x157)+_0x59b488(0x146)+_0x59b488(0x132),'location':getLocationFromPath(_0x40507d[_0x59b488(0x125)],_0x40507d[_0x59b488(0x14a)],pathToArray(_0x3616e4))}),_0x4c3084[_0x59b488(0x150)](...checkConditions(_0x9d1fb8[_0x59b488(0x14e)],_0x3616e4,_0x40507d))),_0x4c3084;if(_0x9d1fb8['type']==='Value'||_0x9d1fb8[_0x59b488(0x144)]==='Behavior'){const _0x1902e3=_0x9d1fb8,_0x36fa3f=_0x1902e3['source'],_0x20cf0d=_0x1902e3['aggregation'],_0x21757d=_0x36fa3f||_0x20cf0d;(!_0x1902e3['attribute']||_0x1902e3[_0x59b488(0x12f)]==='')&&(!_0x21757d&&_0x4c3084['push']({'level':_0x59b488(0x137),'path':_0x3616e4+_0x59b488(0x14d),'code':'EMPTY_ATTRIBUTE','message':_0x59b488(0x142),'location':getLocationFromPath(_0x40507d[_0x59b488(0x125)],_0x40507d[_0x59b488(0x14a)],pathToArray(_0x3616e4+_0x59b488(0x14d)))}));_0x1902e3['filter']&&_0x4c3084[_0x59b488(0x150)](...checkRule(_0x1902e3['filter'],_0x3616e4+'.filter',_0x40507d));if(_0x1902e3[_0x59b488(0x14a)]){const _0x1a4175=_0x1902e3[_0x59b488(0x12f)]&&_0x1902e3[_0x59b488(0x12f)]!=='';_0x1a4175&&!_0x1902e3[_0x59b488(0x126)]&&_0x4c3084[_0x59b488(0x150)]({'level':_0x59b488(0x137),'path':_0x3616e4+_0x59b488(0x123),'code':_0x59b488(0x135),'message':'Behavior\x20source\x20\x27'+_0x1902e3[_0x59b488(0x14a)]+_0x59b488(0x117)+_0x1902e3[_0x59b488(0x12f)]+'\x27\x20'+_0x59b488(0x159)+_0x59b488(0x14c)+_0x59b488(0x153),'location':getLocationFromPath(_0x40507d[_0x59b488(0x125)],_0x40507d[_0x59b488(0x14a)],pathToArray(_0x3616e4+_0x59b488(0x123)))}),_0x1a4175&&_0x1902e3[_0x59b488(0x126)]&&_0x4c3084[_0x59b488(0x150)]({'level':_0x59b488(0x136),'path':_0x3616e4+'.attribute','code':_0x59b488(0x11e),'message':'Attribute\x20\x27'+_0x1902e3[_0x59b488(0x12f)]+_0x59b488(0x147)+_0x59b488(0x11c),'location':getLocationFromPath(_0x40507d[_0x59b488(0x125)],_0x40507d[_0x59b488(0x14a)],pathToArray(_0x3616e4+_0x59b488(0x14d)))});}}return _0x4c3084;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e8687,_0x798c64){const _0x3978cc=a147_0x3023,_0x4e0a53=_0x4e8687();while(!![]){try{const _0x488ade=parseInt(_0x3978cc(0x145))/0x1+parseInt(_0x3978cc(0x16c))/0x2+-parseInt(_0x3978cc(0x14a))/0x3*(parseInt(_0x3978cc(0x168))/0x4)+parseInt(_0x3978cc(0x152))/0x5*(-parseInt(_0x3978cc(0x171))/0x6)+parseInt(_0x3978cc(0x151))/0x7+parseInt(_0x3978cc(0x154))/0x8*(-parseInt(_0x3978cc(0x165))/0x9)+parseInt(_0x3978cc(0x175))/0xa;if(_0x488ade===_0x798c64)break;else _0x4e0a53['push'](_0x4e0a53['shift']());}catch(_0x48de91){_0x4e0a53['push'](_0x4e0a53['shift']());}}}(a147_0x4efc,0xec92d));import a147_0x32785e from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';function a147_0x4efc(){const _0x566448=['No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','join','root','No\x20tdx.json\x20found','relative','resourceType','folderPath','18NVcLVx','includes','basename','10636XjNRWB','dirname','directory','invalid_yaml','3033464duzVlf','parent_name','no_config','exists','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','2232EIGqIu','segmentName','No\x20tdx.json\x20found\x20for\x20file:\x20','isScoped','1753340lasjif','resolve','configDir','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','context','readFile','startsWith','1164837xFzrSk','extname','parse','trim','error','2181ZXRoOw','scopedFolderPath','replace','isDirectory','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','journey','parent_segment','12916561vDDvTM','10655untSCq','message','4029184dbloeE','Parent\x20segment\x20not\x20specified','File\x20not\x20found:\x20','isFile','stat','file','string','segment','parentSegment','type'];a147_0x4efc=function(){return _0x566448;};return a147_0x4efc();}import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';function a147_0x3023(_0x5bc1ab,_0x1b1bec){_0x5bc1ab=_0x5bc1ab-0x142;const _0x4efc72=a147_0x4efc();let _0x302398=_0x4efc72[_0x5bc1ab];return _0x302398;}export function isSuccessfulResolution(_0x3c23b0){return _0x3c23b0['type']!=='error';}export function isScopedResolution(_0x5e9d5a){const _0x1c5d42=a147_0x3023;return _0x5e9d5a[_0x1c5d42(0x15d)]===_0x1c5d42(0x16a)||_0x5e9d5a[_0x1c5d42(0x15d)]===_0x1c5d42(0x159)||_0x5e9d5a[_0x1c5d42(0x15d)]===_0x1c5d42(0x142);}export function getScopedDetails(_0x37f7a1){const _0x39404d=a147_0x3023;if(isScopedResolution(_0x37f7a1))return{'isScoped':_0x37f7a1[_0x39404d(0x174)],'scopedFolderPath':_0x37f7a1[_0x39404d(0x14b)]};return undefined;}async function findTdxConfigAsync(_0x34493e,_0x8d3ddf){const _0x4d0d39=a147_0x3023;let _0x5b8874=a147_0x32785e[_0x4d0d39(0x176)](_0x34493e);const _0x3ee309=a147_0x32785e[_0x4d0d39(0x147)](_0x5b8874)[_0x4d0d39(0x160)];while(_0x5b8874!==_0x3ee309){const _0x1e90e3=a147_0x32785e[_0x4d0d39(0x15f)](_0x5b8874,'tdx.json');if(await _0x8d3ddf[_0x4d0d39(0x16f)](_0x1e90e3))try{const _0x50b574=await _0x8d3ddf[_0x4d0d39(0x143)](_0x1e90e3),_0x5357b5=JSON[_0x4d0d39(0x147)](_0x50b574);if(_0x5357b5[_0x4d0d39(0x150)]&&typeof _0x5357b5[_0x4d0d39(0x150)]===_0x4d0d39(0x15a))return{'configPath':_0x1e90e3,'configDir':_0x5b8874,'parentSegment':_0x5357b5[_0x4d0d39(0x150)]};}catch{}_0x5b8874=a147_0x32785e['dirname'](_0x5b8874);}return null;}function calculateScopedPath(_0x1f59ab,_0x1ebe97){const _0xaec65e=a147_0x3023,_0x305c12=a147_0x32785e[_0xaec65e(0x162)](_0x1ebe97,_0x1f59ab),_0x5b517e=_0x305c12!==''&&_0x305c12!=='.'&&!_0x305c12[_0xaec65e(0x144)]('..');return{'isScoped':_0x5b517e,'scopedFolderPath':_0x5b517e?_0x305c12[_0xaec65e(0x14c)](/\\/g,'/'):''};}export async function resolveTarget(_0x17a244){const _0x57a4ec=a147_0x3023,{arg:_0x325695,contextParent:_0x583dbb,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x17a244;if(_0x325695&&isYamlFilePath(_0x325695))try{const _0x3830e6=await resolveYamlFilePath(_0x325695,fs),_0x334732=a147_0x32785e[_0x57a4ec(0x176)](_0x325695),_0x2b924c=a147_0x32785e[_0x57a4ec(0x169)](_0x334732),_0x579eef=await findTdxConfigAsync(_0x2b924c,fs);if(!_0x579eef){if(_0x583dbb){const _0x474fcf=a147_0x32785e[_0x57a4ec(0x169)](_0x334732);return{'type':_0x57a4ec(0x159),'parentName':_0x583dbb,'targetDir':_0x474fcf,'configRoot':_0x474fcf,'filePath':_0x334732,'resourceName':_0x3830e6['segmentName'],'folderPath':_0x3830e6[_0x57a4ec(0x164)],'resourceType':_0x3830e6[_0x57a4ec(0x163)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x57a4ec(0x149),'errorCode':'no_config','message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x325695,'arg':_0x325695,'helpText':_0x57a4ec(0x14e)};}const _0x257e82=calculateScopedPath(_0x2b924c,_0x579eef[_0x57a4ec(0x177)]);return{'type':_0x57a4ec(0x159),'parentName':_0x579eef[_0x57a4ec(0x15c)],'targetDir':_0x579eef[_0x57a4ec(0x177)],'configRoot':_0x579eef['configDir'],'filePath':_0x334732,'resourceName':_0x3830e6[_0x57a4ec(0x172)],'folderPath':_0x3830e6[_0x57a4ec(0x164)],'resourceType':_0x3830e6['resourceType'],'isScoped':_0x257e82[_0x57a4ec(0x174)],'scopedFolderPath':_0x257e82[_0x57a4ec(0x14b)]};}catch(_0x1fa2d2){const _0x54abdc=_0x1fa2d2 instanceof Error?_0x1fa2d2[_0x57a4ec(0x153)]:String(_0x1fa2d2);if(_0x54abdc[_0x57a4ec(0x166)]('File\x20not\x20found'))return{'type':'error','errorCode':'file_not_found','message':_0x57a4ec(0x156)+_0x325695,'arg':_0x325695};if(_0x54abdc['includes'](_0x57a4ec(0x161))){if(_0x583dbb){const _0x4984c5=a147_0x32785e[_0x57a4ec(0x176)](_0x325695);if(await fs['exists'](_0x4984c5)){const _0x41bb69=a147_0x32785e[_0x57a4ec(0x169)](_0x4984c5),_0x13fc63=await fs[_0x57a4ec(0x143)](_0x4984c5),_0xd6d280=_0x13fc63['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x29d605=_0x13fc63['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x2f5ef2=_0xd6d280?_0xd6d280[0x1][_0x57a4ec(0x148)]():a147_0x32785e[_0x57a4ec(0x167)](_0x325695,a147_0x32785e[_0x57a4ec(0x146)](_0x325695)),_0x3a9f67=_0x29d605&&_0x29d605[0x1][_0x57a4ec(0x148)]()===_0x57a4ec(0x14f)?'journey':_0x57a4ec(0x15b);return{'type':_0x57a4ec(0x159),'parentName':_0x583dbb,'targetDir':_0x41bb69,'configRoot':_0x41bb69,'filePath':_0x4984c5,'resourceName':_0x2f5ef2,'folderPath':'','resourceType':_0x3a9f67,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x57a4ec(0x149),'errorCode':_0x57a4ec(0x16e),'message':_0x57a4ec(0x173)+_0x325695,'arg':_0x325695,'helpText':_0x57a4ec(0x14e)};}return{'type':_0x57a4ec(0x149),'errorCode':_0x57a4ec(0x16b),'message':_0x54abdc,'arg':_0x325695};}if(_0x325695){const _0x3a8727=a147_0x32785e['resolve'](cwd,_0x325695);let _0x1e6f6f=null;try{_0x1e6f6f=await fs[_0x57a4ec(0x158)](_0x3a8727);}catch{}if(_0x1e6f6f?.[_0x57a4ec(0x14d)]()){const _0x23f631=await findTdxConfigAsync(_0x3a8727,fs);if(_0x23f631){const _0x368a03=calculateScopedPath(_0x3a8727,_0x23f631['configDir']);return{'type':_0x57a4ec(0x16a),'parentName':_0x23f631[_0x57a4ec(0x15c)],'targetDir':_0x3a8727,'configRoot':_0x23f631[_0x57a4ec(0x177)],'isScoped':_0x368a03[_0x57a4ec(0x174)],'scopedFolderPath':_0x368a03[_0x57a4ec(0x14b)]};}if(_0x583dbb)return{'type':_0x57a4ec(0x16a),'parentName':_0x583dbb,'targetDir':_0x3a8727,'configRoot':_0x3a8727,'isScoped':![],'scopedFolderPath':''};return{'type':_0x57a4ec(0x149),'errorCode':'no_config','message':_0x57a4ec(0x15e)+_0x325695,'arg':_0x325695,'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(_0x1e6f6f?.[_0x57a4ec(0x157)]())return{'type':_0x57a4ec(0x149),'errorCode':_0x57a4ec(0x16b),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x325695,'arg':_0x325695,'helpText':_0x57a4ec(0x170)};const _0x2616f7=sanitizeFileName(_0x325695),_0x51ac64=getSegmentRootDir(_0x2616f7,cwd);return{'type':_0x57a4ec(0x16d),'parentName':_0x325695,'targetDir':_0x51ac64,'configRoot':_0x51ac64};}const _0x5f2ae3=await findTdxConfigAsync(cwd,fs);if(_0x5f2ae3){const _0x5f204f=calculateScopedPath(cwd,_0x5f2ae3[_0x57a4ec(0x177)]);return{'type':_0x57a4ec(0x142),'parentName':_0x5f2ae3['parentSegment'],'targetDir':cwd,'configRoot':_0x5f2ae3[_0x57a4ec(0x177)],'isScoped':_0x5f204f[_0x57a4ec(0x174)],'scopedFolderPath':_0x5f204f['scopedFolderPath']};}if(_0x583dbb){const _0x346448=sanitizeFileName(_0x583dbb),_0x8fa1cf=getSegmentRootDir(_0x346448,cwd);return{'type':_0x57a4ec(0x142),'parentName':_0x583dbb,'targetDir':_0x8fa1cf,'configRoot':_0x8fa1cf,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x57a4ec(0x149),'errorCode':'no_parent','message':_0x57a4ec(0x155),'helpText':_0x57a4ec(0x178)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a148_0x5cea(){const _0x513de4=['startsWith','utf-8','replace','string','object','tdx.json','3730dSOYmC','engage_workspace','join','resolve','segments','36887592UFcTTx','2QLOasV','relative','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','parent_segment','105AysmwO','parse','stringify','12606WhvKym','root','dirname','677718FZEozA','4961001UPUtMC','4UvOYOr','87669FpJhMt','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','cwd','474918ZMNDQR','424ARBBVC','7999195GgxhBT'];a148_0x5cea=function(){return _0x513de4;};return a148_0x5cea();}const a148_0x4ede23=a148_0x3ab7;(function(_0xd82832,_0x3e0f90){const _0x30741d=a148_0x3ab7,_0x41b08d=_0xd82832();while(!![]){try{const _0x4ce9b2=parseInt(_0x30741d(0x127))/0x1*(parseInt(_0x30741d(0x136))/0x2)+parseInt(_0x30741d(0x141))/0x3+-parseInt(_0x30741d(0x142))/0x4*(parseInt(_0x30741d(0x129))/0x5)+-parseInt(_0x30741d(0x140))/0x6*(parseInt(_0x30741d(0x13a))/0x7)+-parseInt(_0x30741d(0x128))/0x8*(parseInt(_0x30741d(0x143))/0x9)+-parseInt(_0x30741d(0x130))/0xa*(parseInt(_0x30741d(0x13d))/0xb)+parseInt(_0x30741d(0x135))/0xc;if(_0x4ce9b2===_0x3e0f90)break;else _0x41b08d['push'](_0x41b08d['shift']());}catch(_0xcb6ab6){_0x41b08d['push'](_0x41b08d['shift']());}}}(a148_0x5cea,0xeb84e));function a148_0x3ab7(_0x4d7136,_0x3966b0){_0x4d7136=_0x4d7136-0x125;const _0x5cea86=a148_0x5cea();let _0x3ab740=_0x5cea86[_0x4d7136];return _0x3ab740;}import{existsSync,readFileSync}from'fs';import a148_0x4cd0ee from'path';const TDX_CONFIG_FILE=a148_0x4ede23(0x12f),SEGMENTS_DIR=a148_0x4ede23(0x134);export function findTdxConfigPath(_0x1e03a4=process[a148_0x4ede23(0x126)]()){const _0xea149d=a148_0x4ede23;let _0xb221b0=a148_0x4cd0ee[_0xea149d(0x133)](_0x1e03a4);const _0x3ea1d2=a148_0x4cd0ee[_0xea149d(0x13b)](_0xb221b0)[_0xea149d(0x13e)];while(_0xb221b0!==_0x3ea1d2){const _0x5bccf9=a148_0x4cd0ee[_0xea149d(0x132)](_0xb221b0,TDX_CONFIG_FILE);if(existsSync(_0x5bccf9))return _0x5bccf9;_0xb221b0=a148_0x4cd0ee[_0xea149d(0x13f)](_0xb221b0);}return null;}export function loadTdxConfig(_0x4d821a){const _0x5208bd=a148_0x4ede23,_0x2e8369=readFileSync(_0x4d821a,_0x5208bd(0x12b));let _0x5575e4;try{_0x5575e4=JSON[_0x5208bd(0x13b)](_0x2e8369);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x4d821a);}if(!_0x5575e4||typeof _0x5575e4!==_0x5208bd(0x12e))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x2f3adc=_0x5575e4,_0x2bc603=_0x2f3adc['parent_segment']&&typeof _0x2f3adc[_0x5208bd(0x139)]===_0x5208bd(0x12d),_0x4214e6=_0x2f3adc[_0x5208bd(0x131)]&&typeof _0x2f3adc[_0x5208bd(0x131)]===_0x5208bd(0x12d);if(!_0x2bc603&&!_0x4214e6)throw new Error(_0x5208bd(0x138));const _0x11a391={};return _0x2bc603&&(_0x11a391[_0x5208bd(0x139)]=_0x2f3adc[_0x5208bd(0x139)]),_0x4214e6&&(_0x11a391[_0x5208bd(0x131)]=_0x2f3adc[_0x5208bd(0x131)]),_0x11a391;}export function findTdxConfig(_0x3f538a=process[a148_0x4ede23(0x126)]()){const _0x4fd3eb=a148_0x4ede23,_0x1e907=findTdxConfigPath(_0x3f538a);if(!_0x1e907)throw new Error(_0x4fd3eb(0x125));const _0x48bd2c=loadTdxConfig(_0x1e907),_0x92ad51=a148_0x4cd0ee[_0x4fd3eb(0x13f)](_0x1e907);return{'config':_0x48bd2c,'configPath':_0x1e907,'configDir':_0x92ad51};}export function tryFindTdxConfig(_0x557b6){try{return findTdxConfig(_0x557b6);}catch{return null;}}export function getSegmentRootDir(_0x321011,_0x46a06f=process[a148_0x4ede23(0x126)]()){const _0x4a3f78=a148_0x4ede23;return a148_0x4cd0ee[_0x4a3f78(0x132)](_0x46a06f,SEGMENTS_DIR,_0x321011);}export function getTdxConfigPath(_0x2da00f,_0x5c4f64=process['cwd']()){return a148_0x4cd0ee['join'](getSegmentRootDir(_0x2da00f,_0x5c4f64),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x32d2d6,_0x1cc04f){const _0x46f367=a148_0x4ede23,_0x35cac7=a148_0x4cd0ee['resolve'](_0x32d2d6),_0xc28c34=a148_0x4cd0ee[_0x46f367(0x137)](_0x1cc04f,_0x35cac7);if(_0xc28c34[_0x46f367(0x12a)]('..'))return'';return _0xc28c34;}export function localPathToTdFolderPath(_0x3c21a8){const _0x356e28=a148_0x4ede23,_0x18a25d=a148_0x4cd0ee[_0x356e28(0x13f)](_0x3c21a8);if(_0x18a25d==='.'||_0x18a25d==='')return'';return _0x18a25d[_0x356e28(0x12c)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x412e34,_0xd0d18c){const _0x3eb259=a148_0x4ede23;if(!_0x412e34)return _0xd0d18c;return a148_0x4cd0ee[_0x3eb259(0x132)](_0xd0d18c,_0x412e34);}export function createTdxConfigContent(_0x4590fc){const _0x27b7a1=a148_0x4ede23,_0x1ff868={'parent_segment':_0x4590fc};return JSON[_0x27b7a1(0x13c)](_0x1ff868,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x4e6dd5){const _0x4ee056=a148_0x4ede23,_0x2c434d={'engage_workspace':_0x4e6dd5};return JSON[_0x4ee056(0x13c)](_0x2c434d,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x3557eb=a149_0x4b11;(function(_0x46eec8,_0xdc269){const _0xbf509a=a149_0x4b11,_0x2f81ed=_0x46eec8();while(!![]){try{const _0x75c53d=-parseInt(_0xbf509a(0x19d))/0x1*(parseInt(_0xbf509a(0x19b))/0x2)+parseInt(_0xbf509a(0x1bc))/0x3+parseInt(_0xbf509a(0x1a6))/0x4+-parseInt(_0xbf509a(0x1b7))/0x5*(-parseInt(_0xbf509a(0x1a9))/0x6)+parseInt(_0xbf509a(0x1c0))/0x7*(-parseInt(_0xbf509a(0x1bf))/0x8)+-parseInt(_0xbf509a(0x1a8))/0x9+-parseInt(_0xbf509a(0x19c))/0xa;if(_0x75c53d===_0xdc269)break;else _0x2f81ed['push'](_0x2f81ed['shift']());}catch(_0x1f1fb6){_0x2f81ed['push'](_0x2f81ed['shift']());}}}(a149_0x4f0b,0xafa8f));import{z}from'zod';export const ScheduleTypeSchema=z[a149_0x3557eb(0x1aa)]([a149_0x3557eb(0x19a),a149_0x3557eb(0x1b5),a149_0x3557eb(0x1b3),a149_0x3557eb(0x1a7),a149_0x3557eb(0x1a0),'cron','minutes_interval']);export const RepeatUnitSchema=z['enum']([a149_0x3557eb(0x1be),'hour',a149_0x3557eb(0x1ab),'week',a149_0x3557eb(0x198),a149_0x3557eb(0x19f),'none']);function a149_0x4f0b(){const _0x54b6dd=['1640tInkWs','20118BKZxVZ','desc','nullable','month','Activation\x20name\x20is\x20required','none','99184EgJBjc','10097310fEGnQE','7syfcJv','union','once','monthly','rows','object','masked','optional','string','1884364ufpHUh','weekly','2528055FXGIkf','115278KLxVDM','enum','day','Last','onSuccess','Connection\x20name\x20is\x20required','Top-N','min','clear','First','daily','unknown','hourly','array','305TPYXyI','record','onFailure','number','boolean','3910077xemZpx','cols','minute'];a149_0x4f0b=function(){return _0x54b6dd;};return a149_0x4f0b();}function a149_0x4b11(_0x3cd8cd,_0x20049d){_0x3cd8cd=_0x3cd8cd-0x197;const _0x4f0b2a=a149_0x4f0b();let _0x4b111d=_0x4f0b2a[_0x3cd8cd];return _0x4b111d;}export const ScheduleDefSchema=z[a149_0x3557eb(0x1a2)]({'type':ScheduleTypeSchema[a149_0x3557eb(0x1a4)](),'repeat_unit':RepeatUnitSchema[a149_0x3557eb(0x1a4)](),'repeat_frequency':z[a149_0x3557eb(0x1ba)]()[a149_0x3557eb(0x1a4)](),'repeat_sub_frequency':z[a149_0x3557eb(0x1b6)](z[a149_0x3557eb(0x1ba)]())[a149_0x3557eb(0x1a4)](),'start_at':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x197)]()[a149_0x3557eb(0x1a4)](),'end_on':z['string']()[a149_0x3557eb(0x197)]()[a149_0x3557eb(0x1a4)](),'timezone':z[a149_0x3557eb(0x1a5)]()['optional']()});export const NotificationDefSchema=z['object']({'notify_on':z[a149_0x3557eb(0x1b6)](z[a149_0x3557eb(0x1aa)]([a149_0x3557eb(0x1ad),a149_0x3557eb(0x1b9)]))['optional'](),'email_recipients':z[a149_0x3557eb(0x1b6)](z['string']())['optional']()});export const ActivationColumnDefSchema=z[a149_0x3557eb(0x19e)]([z[a149_0x3557eb(0x1a5)](),z[a149_0x3557eb(0x1a2)]({'name':z['string'](),'type':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x1a4)](),'visibility':z[a149_0x3557eb(0x1aa)]([a149_0x3557eb(0x1b1),a149_0x3557eb(0x1a3)])[a149_0x3557eb(0x1a4)]()})]);export const ActivationBehaviorDefSchema=z[a149_0x3557eb(0x1a2)]({'columns':z[a149_0x3557eb(0x1b6)](z[a149_0x3557eb(0x1a2)]({'name':z[a149_0x3557eb(0x1a5)](),'type':z[a149_0x3557eb(0x1a5)]()['optional'](),'visibility':z[a149_0x3557eb(0x1aa)]([a149_0x3557eb(0x1b1),a149_0x3557eb(0x1a3)])['optional']()}))['optional'](),'behavior_table':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x1a4)](),'join_row':z['number']()['nullable']()[a149_0x3557eb(0x1a4)](),'join_strategy':z[a149_0x3557eb(0x1aa)](['All',a149_0x3557eb(0x1b2),a149_0x3557eb(0x1ac),a149_0x3557eb(0x1af)])['optional'](),'formatting':z[a149_0x3557eb(0x1aa)]([a149_0x3557eb(0x1a1),a149_0x3557eb(0x1bd)])[a149_0x3557eb(0x1a4)](),'order_by':z['array'](z[a149_0x3557eb(0x1a2)]({'key':z[a149_0x3557eb(0x1a5)](),'order':z['enum'](['asc',a149_0x3557eb(0x1c1)])}))[a149_0x3557eb(0x1a4)]()});export const ActivationDefSchema=z['object']({'name':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x1b0)](0x1,a149_0x3557eb(0x199)),'description':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x1a4)](),'connection':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x1b0)](0x1,a149_0x3557eb(0x1ae)),'all_columns':z[a149_0x3557eb(0x1bb)]()[a149_0x3557eb(0x1a4)](),'columns':z['array'](ActivationColumnDefSchema)[a149_0x3557eb(0x1a4)](),'schedule':ScheduleDefSchema[a149_0x3557eb(0x1a4)](),'notification':NotificationDefSchema[a149_0x3557eb(0x1a4)](),'connector_config':z[a149_0x3557eb(0x1b8)](z[a149_0x3557eb(0x1a5)](),z[a149_0x3557eb(0x1b4)]())[a149_0x3557eb(0x1a4)](),'activation_template_id':z[a149_0x3557eb(0x1a5)]()[a149_0x3557eb(0x197)]()[a149_0x3557eb(0x1a4)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a149_0x3557eb(0x1a4)](),'run_after_journey_refresh':z[a149_0x3557eb(0x1bb)]()[a149_0x3557eb(0x1a4)]()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a150_0x23df(_0x3988a1,_0x45f053){_0x3988a1=_0x3988a1-0x111;var _0xa360a9=a150_0xa360();var _0x23dfdf=_0xa360a9[_0x3988a1];return _0x23dfdf;}(function(_0x6ed8b8,_0x1de136){var _0x21ebea=a150_0x23df,_0x5cb33f=_0x6ed8b8();while(!![]){try{var _0xccaf18=-parseInt(_0x21ebea(0x113))/0x1+parseInt(_0x21ebea(0x112))/0x2*(parseInt(_0x21ebea(0x114))/0x3)+parseInt(_0x21ebea(0x117))/0x4+-parseInt(_0x21ebea(0x118))/0x5+parseInt(_0x21ebea(0x119))/0x6*(parseInt(_0x21ebea(0x111))/0x7)+-parseInt(_0x21ebea(0x115))/0x8+-parseInt(_0x21ebea(0x116))/0x9;if(_0xccaf18===_0x1de136)break;else _0x5cb33f['push'](_0x5cb33f['shift']());}catch(_0x123f06){_0x5cb33f['push'](_0x5cb33f['shift']());}}}(a150_0xa360,0x24493));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a150_0xa360(){var _0x268db7=['43288GpTSDP','2327175UuoeIZ','566616QanRUi','1012845FwlpEz','642fYvRld','18151bpuajD','82HrzGcR','93834IlCiaT','21213jSrHsr'];a150_0xa360=function(){return _0x268db7;};return a150_0xa360();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a151_0x252377=a151_0x1713;(function(_0x4438e0,_0x24b00c){const _0x418b45=a151_0x1713,_0x1bf955=_0x4438e0();while(!![]){try{const _0xe210bf=-parseInt(_0x418b45(0xaf))/0x1*(-parseInt(_0x418b45(0xb2))/0x2)+parseInt(_0x418b45(0x9e))/0x3+-parseInt(_0x418b45(0x9b))/0x4+parseInt(_0x418b45(0x9c))/0x5*(parseInt(_0x418b45(0xc4))/0x6)+-parseInt(_0x418b45(0xbd))/0x7+-parseInt(_0x418b45(0xb9))/0x8*(-parseInt(_0x418b45(0x9f))/0x9)+parseInt(_0x418b45(0xa3))/0xa;if(_0xe210bf===_0x24b00c)break;else _0x1bf955['push'](_0x1bf955['shift']());}catch(_0xbfa115){_0x1bf955['push'](_0x1bf955['shift']());}}}(a151_0x3495,0x8e0cf));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a151_0x252377(0xb6)]([a151_0x252377(0xa8),a151_0x252377(0xa5),a151_0x252377(0x9d)]);export const ReentryModeTypeSchema=z[a151_0x252377(0xb6)]([a151_0x252377(0xc3),'reentry_unless_goal_achieved',a151_0x252377(0xb1)]);export const WaitUnitTypeSchema=z[a151_0x252377(0xb6)]([a151_0x252377(0xb3),a151_0x252377(0xbc)]);export const StepTypeValueSchema=z[a151_0x252377(0xb6)]([a151_0x252377(0xb8),'activation',a151_0x252377(0xc6),'ab_test',a151_0x252377(0xb0),a151_0x252377(0xad),'end']);export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()[a151_0x252377(0xbf)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a151_0x252377(0xbe)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z[a151_0x252377(0xa2)]()['optional']()});export const CriteriaDefSchema=z['object']({'name':z[a151_0x252377(0xa2)](),'description':z[a151_0x252377(0xa2)]()['optional'](),'segment':z[a151_0x252377(0xa2)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a151_0x252377(0xbe)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)]()}),WaitConditionDefSchema=z[a151_0x252377(0xbe)]({'segment':z['string'](),'next':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'timeout':WaitConditionTimeoutDefSchema[a151_0x252377(0xbf)]()}),WaitStepParamsDefSchema=z[a151_0x252377(0xbe)]({'duration':z[a151_0x252377(0xa9)]()[a151_0x252377(0xbf)](),'unit':WaitUnitTypeSchema[a151_0x252377(0xbf)](),'wait_until':z[a151_0x252377(0xa2)]()['optional'](),'condition':WaitConditionDefSchema[a151_0x252377(0xbf)](),'days_of_week':z[a151_0x252377(0xc5)](z[a151_0x252377(0xa2)]())['optional']()}),StepBaseFields={'name':z[a151_0x252377(0xa2)](),'uuid':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'next':z['string']()[a151_0x252377(0xbf)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x252377(0xab)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a151_0x252377(0xbe)]({'activation':z[a151_0x252377(0xa2)]()}),ActivationStepDefSchema=z[a151_0x252377(0xbe)]({...StepBaseFields,'type':z[a151_0x252377(0xab)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x252377(0xbe)]({'name':z[a151_0x252377(0xa2)](),'segment':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'segment_id':z[a151_0x252377(0xa2)]()['optional'](),'excluded':z['boolean']()['optional'](),'next':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z[a151_0x252377(0xc5)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x252377(0xbe)]({...StepBaseFields,'type':z[a151_0x252377(0xab)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x252377(0xbe)]({'id':z['string']()[a151_0x252377(0xbf)](),'name':z[a151_0x252377(0xa2)](),'percentage':z[a151_0x252377(0xa9)](),'next':z[a151_0x252377(0xa2)]()['optional']()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a151_0x252377(0xc5)](AbTestVariantDefSchema),'unique_id':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'customized_split':z[a151_0x252377(0xc2)]()[a151_0x252377(0xbf)]()}),AbTestStepDefSchema=z[a151_0x252377(0xbe)]({...StepBaseFields,'type':z[a151_0x252377(0xab)]('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a151_0x252377(0xbe)]({...StepBaseFields,'type':z[a151_0x252377(0xab)](a151_0x252377(0xb0))}),JumpStepParamsDefSchema=z[a151_0x252377(0xbe)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x252377(0xbe)]({...StepBaseFields,'type':z[a151_0x252377(0xab)](a151_0x252377(0xad)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a151_0x252377(0xbe)]({...StepBaseFields,'type':z[a151_0x252377(0xab)](a151_0x252377(0xae))})[a151_0x252377(0xaa)]();export const StepDefSchema=z[a151_0x252377(0xb5)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a151_0x3495(){const _0x563f40=['jump','end','6pKdofD','merge','reentry_always','25568yNvvXl','day','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','discriminatedUnion','enum','versions','wait','8OcdmQk','filter','Journey\x20name\x20is\x20required','week','5997705cgYxub','object','optional','isArray','stages','boolean','no_reentry','3033834mmgvgz','array','decision_point','lazy','2705828AIlzjc','5DIeLab','launched','99051nDRiVh','7106742HNdTTZ','record','journeys','string','7101130KnLMpl','length','simulation','journey','min','draft','number','passthrough','literal','refine'];a151_0x3495=function(){return _0x563f40;};return a151_0x3495();}export const StageDefSchema=z[a151_0x252377(0xbe)]({'name':z[a151_0x252377(0xa2)](),'description':z[a151_0x252377(0xa2)]()['optional'](),'id':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'entry_criteria':CriteriaDefSchema[a151_0x252377(0xbf)](),'exit_criteria':z[a151_0x252377(0xc5)](CriteriaDefSchema)[a151_0x252377(0xbf)](),'milestone':CriteriaDefSchema[a151_0x252377(0xbf)](),'root_step':z[a151_0x252377(0xa2)]()['optional'](),'steps':z[a151_0x252377(0xc5)](StepDefSchema)[a151_0x252377(0xbf)]()});export const JourneyEntryDefSchema=z[a151_0x252377(0xbe)]({'name':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'version':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'state':JourneyStateTypeSchema[a151_0x252377(0xbf)](),'latest':z[a151_0x252377(0xc2)]()['optional'](),'stages':z['array'](StageDefSchema),'id':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'version_number':z[a151_0x252377(0xa9)]()[a151_0x252377(0xbf)](),'goal':CriteriaDefSchema[a151_0x252377(0xbf)](),'reentry':ReentryModeTypeSchema[a151_0x252377(0xbf)]()});export const JourneyDefSchema=z[a151_0x252377(0xc7)](()=>z[a151_0x252377(0xbe)]({'type':z['literal'](a151_0x252377(0xa6)),'name':z[a151_0x252377(0xa2)]()[a151_0x252377(0xa7)](0x1,a151_0x252377(0xbb)),'description':z[a151_0x252377(0xa2)]()[a151_0x252377(0xbf)](),'bundle_id':z[a151_0x252377(0xa2)]()['optional'](),'bundle_name':z['string']()[a151_0x252377(0xbf)](),'folder_id':z[a151_0x252377(0xa2)]()['optional'](),'reentry':ReentryModeTypeSchema[a151_0x252377(0xbf)](),'allow_reentry':z[a151_0x252377(0xc2)]()[a151_0x252377(0xbf)](),'goal':CriteriaDefSchema[a151_0x252377(0xbf)](),'id':z['string']()[a151_0x252377(0xbf)](),'version':z['string']()['optional'](),'version_number':z['number']()[a151_0x252377(0xbf)](),'stages':z[a151_0x252377(0xc5)](StageDefSchema)[a151_0x252377(0xbf)](),'versions':z['array'](JourneyEntryDefSchema)[a151_0x252377(0xbf)](),'journeys':z[a151_0x252377(0xc5)](JourneyEntryDefSchema)[a151_0x252377(0xbf)](),'segments':z[a151_0x252377(0xa0)](z['string'](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a151_0x252377(0xa0)](z[a151_0x252377(0xa2)](),ActivationDefSchema)[a151_0x252377(0xbf)]()})[a151_0x252377(0xac)](_0x422fda=>{const _0x7e8a4c=a151_0x252377,_0x7000d4=[_0x422fda[_0x7e8a4c(0xa1)],_0x422fda[_0x7e8a4c(0xc1)],_0x422fda[_0x7e8a4c(0xb7)]][_0x7e8a4c(0xba)](_0x51ce85=>Array[_0x7e8a4c(0xc0)](_0x51ce85)&&_0x51ce85[_0x7e8a4c(0xa4)]>0x0)[_0x7e8a4c(0xa4)];return _0x7000d4===0x1;},{'message':a151_0x252377(0xb4)}));function a151_0x1713(_0x481b1d,_0x51727c){_0x481b1d=_0x481b1d-0x9b;const _0x349500=a151_0x3495();let _0x171315=_0x349500[_0x481b1d];return _0x171315;}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a153_0x3ff6(){var _0x227f7c=['548zeLcNH','12469050qdqjUs','4584070CKoDBQ','31562QkVTka','1074577MpywSY','56QQPKiR','4832922ZcazrZ','47hYOJZw','72387530vMTouJ','32718zZYGjr'];a153_0x3ff6=function(){return _0x227f7c;};return a153_0x3ff6();}(function(_0x52c67d,_0x5b525d){var _0x1f512a=a153_0x2b18,_0x13f2ff=_0x52c67d();while(!![]){try{var _0x2e9bea=-parseInt(_0x1f512a(0xc1))/0x1*(parseInt(_0x1f512a(0xbd))/0x2)+-parseInt(_0x1f512a(0xb9))/0x3*(parseInt(_0x1f512a(0xba))/0x4)+-parseInt(_0x1f512a(0xbc))/0x5+-parseInt(_0x1f512a(0xc0))/0x6+-parseInt(_0x1f512a(0xbe))/0x7*(parseInt(_0x1f512a(0xbf))/0x8)+-parseInt(_0x1f512a(0xbb))/0x9+parseInt(_0x1f512a(0xc2))/0xa;if(_0x2e9bea===_0x5b525d)break;else _0x13f2ff['push'](_0x13f2ff['shift']());}catch(_0x539f40){_0x13f2ff['push'](_0x13f2ff['shift']());}}}(a153_0x3ff6,0xc8574));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x2b18(_0x2e3701,_0xbe87c6){_0x2e3701=_0x2e3701-0xb9;var _0x3ff628=a153_0x3ff6();var _0x2b18d1=_0x3ff628[_0x2e3701];return _0x2b18d1;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a154_0x3db9(_0x1c65e7,_0x5e0b0a){_0x1c65e7=_0x1c65e7-0x1e0;const _0x2c7978=a154_0x2c79();let _0x3db92f=_0x2c7978[_0x1c65e7];return _0x3db92f;}const a154_0x397dfd=a154_0x3db9;(function(_0x39bf06,_0x491a25){const _0x43db42=a154_0x3db9,_0x486d64=_0x39bf06();while(!![]){try{const _0x385b4b=-parseInt(_0x43db42(0x1f1))/0x1+-parseInt(_0x43db42(0x204))/0x2*(-parseInt(_0x43db42(0x225))/0x3)+parseInt(_0x43db42(0x1f5))/0x4*(parseInt(_0x43db42(0x206))/0x5)+-parseInt(_0x43db42(0x228))/0x6+parseInt(_0x43db42(0x210))/0x7+parseInt(_0x43db42(0x1e8))/0x8*(parseInt(_0x43db42(0x207))/0x9)+parseInt(_0x43db42(0x216))/0xa*(-parseInt(_0x43db42(0x1ee))/0xb);if(_0x385b4b===_0x491a25)break;else _0x486d64['push'](_0x486d64['shift']());}catch(_0x2effe7){_0x486d64['push'](_0x486d64['shift']());}}}(a154_0x2c79,0x4d033));import{z}from'zod';export const OperatorTypeSchema=z[a154_0x397dfd(0x20b)](['Equal',a154_0x397dfd(0x21d),a154_0x397dfd(0x218),a154_0x397dfd(0x1fc),a154_0x397dfd(0x1e7),'In','Between',a154_0x397dfd(0x1e0),a154_0x397dfd(0x1fa),a154_0x397dfd(0x214),a154_0x397dfd(0x1ed),a154_0x397dfd(0x212),'StartWith',a154_0x397dfd(0x229),'TimeRange']);export const TimeUnitSchema=z[a154_0x397dfd(0x20b)]([a154_0x397dfd(0x20a),'minute',a154_0x397dfd(0x22b),a154_0x397dfd(0x1f8),a154_0x397dfd(0x21b),'month',a154_0x397dfd(0x21e)]);export const AggregationTypeSchema=z['enum']([a154_0x397dfd(0x1e6),'Sum',a154_0x397dfd(0x211),'Min',a154_0x397dfd(0x201),a154_0x397dfd(0x230),a154_0x397dfd(0x20e),a154_0x397dfd(0x22d)]);const TemporalValueSchema=z[a154_0x397dfd(0x1ea)]([z[a154_0x397dfd(0x22f)]({'timestamp':z[a154_0x397dfd(0x209)]()}),z['object']({'last':z['union']([z['number'](),z[a154_0x397dfd(0x1ef)](z[a154_0x397dfd(0x209)](),z[a154_0x397dfd(0x20d)]())]),'unit':z[a154_0x397dfd(0x209)]()})]),OperatorValueSchema=z[a154_0x397dfd(0x1ea)]([z[a154_0x397dfd(0x209)](),z[a154_0x397dfd(0x20d)](),z[a154_0x397dfd(0x200)](),TemporalValueSchema,z[a154_0x397dfd(0x205)](z[a154_0x397dfd(0x1ea)]([z[a154_0x397dfd(0x209)](),z[a154_0x397dfd(0x20d)](),z[a154_0x397dfd(0x200)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a154_0x397dfd(0x1f3),a154_0x397dfd(0x21d),a154_0x397dfd(0x1fc),'Less',a154_0x397dfd(0x1e7),'In',a154_0x397dfd(0x212),'StartWith',a154_0x397dfd(0x229),'Regexp','TimeWithinPast',a154_0x397dfd(0x1ed)]),OPERATORS_REQUIRING_UNIT=new Set([a154_0x397dfd(0x214),a154_0x397dfd(0x1ed)]);export const OperatorDefSchema=z[a154_0x397dfd(0x22f)]({'type':OperatorTypeSchema,'not':z[a154_0x397dfd(0x200)]()[a154_0x397dfd(0x1f7)](),'value':OperatorValueSchema[a154_0x397dfd(0x1f7)](),'min':z[a154_0x397dfd(0x1ea)]([z['number'](),z[a154_0x397dfd(0x209)](),TemporalValueSchema])[a154_0x397dfd(0x1f7)](),'max':z[a154_0x397dfd(0x1ea)]([z['number'](),z['string'](),TemporalValueSchema])[a154_0x397dfd(0x1f7)](),'unit':TimeUnitSchema[a154_0x397dfd(0x1f7)](),'duration':z[a154_0x397dfd(0x22f)]({'day':z[a154_0x397dfd(0x20d)]()[a154_0x397dfd(0x1f7)](),'week':z[a154_0x397dfd(0x20d)]()['optional'](),'month':z[a154_0x397dfd(0x20d)]()[a154_0x397dfd(0x1f7)](),'year':z[a154_0x397dfd(0x20d)]()[a154_0x397dfd(0x1f7)](),'hour':z[a154_0x397dfd(0x20d)]()[a154_0x397dfd(0x1f7)](),'minute':z['number']()[a154_0x397dfd(0x1f7)](),'second':z[a154_0x397dfd(0x20d)]()['optional']()})[a154_0x397dfd(0x1f7)](),'from':z[a154_0x397dfd(0x22f)]({'last':z[a154_0x397dfd(0x1ea)]([z['number'](),z[a154_0x397dfd(0x209)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z['boolean']()[a154_0x397dfd(0x1f7)]()})[a154_0x397dfd(0x22a)]((_0x40b834,_0x23aa99)=>{const _0x4a0257=a154_0x397dfd;OPERATORS_REQUIRING_VALUE[_0x4a0257(0x222)](_0x40b834['type'])&&(_0x40b834[_0x4a0257(0x1f0)]===undefined||_0x40b834[_0x4a0257(0x1f0)]===null)&&_0x23aa99[_0x4a0257(0x1eb)]({'code':_0x4a0257(0x1f4),'message':_0x4a0257(0x227)+_0x40b834[_0x4a0257(0x217)]+'\x27\x20requires\x20a\x20value','path':[_0x4a0257(0x1f0)]}),_0x40b834[_0x4a0257(0x217)]===_0x4a0257(0x224)&&_0x40b834['min']===undefined&&_0x40b834[_0x4a0257(0x1ff)]===undefined&&_0x23aa99[_0x4a0257(0x1eb)]({'code':_0x4a0257(0x1f4),'message':_0x4a0257(0x226),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x4a0257(0x222)](_0x40b834[_0x4a0257(0x217)])&&_0x40b834[_0x4a0257(0x1f0)]!==undefined&&!_0x40b834['unit']&&_0x23aa99[_0x4a0257(0x1eb)]({'code':'custom','message':_0x4a0257(0x227)+_0x40b834[_0x4a0257(0x217)]+_0x4a0257(0x1f9),'path':[_0x4a0257(0x22c)],'params':{'validationCode':_0x4a0257(0x215)}}),_0x40b834[_0x4a0257(0x217)]===_0x4a0257(0x1e4)&&(!_0x40b834[_0x4a0257(0x21f)]&&_0x23aa99['addIssue']({'code':'custom','message':_0x4a0257(0x1e5),'path':['duration']}),!_0x40b834[_0x4a0257(0x203)]&&_0x23aa99['addIssue']({'code':'custom','message':_0x4a0257(0x1fd),'path':['from']}));});export const ArrayMatchingSchema=z['union']([z['literal'](a154_0x397dfd(0x21c)),z[a154_0x397dfd(0x221)]('all'),z['object']({'atLeast':z[a154_0x397dfd(0x20d)]()}),z['object']({'atMost':z[a154_0x397dfd(0x20d)]()}),z[a154_0x397dfd(0x22f)]({'exactly':z[a154_0x397dfd(0x20d)]()})]);export const AggregationDefSchema=z[a154_0x397dfd(0x21a)](a154_0x397dfd(0x217),[z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x20b)]([a154_0x397dfd(0x208),a154_0x397dfd(0x20f),'Max',a154_0x397dfd(0x211)]),'column':z[a154_0x397dfd(0x209)](),'groupingColumns':z[a154_0x397dfd(0x205)](z['string']())[a154_0x397dfd(0x1f7)]()}),z['object']({'type':z[a154_0x397dfd(0x221)]('Count'),'groupingColumns':z[a154_0x397dfd(0x205)](z[a154_0x397dfd(0x209)]())['optional']()}),z['object']({'type':z[a154_0x397dfd(0x221)]('CountDistinct'),'columns':z[a154_0x397dfd(0x205)](z['string']())}),z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x20b)]([a154_0x397dfd(0x20e),a154_0x397dfd(0x22d)]),'column':z[a154_0x397dfd(0x209)](),'orderColumn':z[a154_0x397dfd(0x209)](),'groupingColumns':z['array'](z[a154_0x397dfd(0x209)]())[a154_0x397dfd(0x1f7)]()})]);export const TimeWindowDefSchema=z[a154_0x397dfd(0x22f)]({'duration':z[a154_0x397dfd(0x20d)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x397dfd(0x214),'TimeWithinNext',a154_0x397dfd(0x1e4)]);export const FilterColumnConditionDefSchema=z['object']({'type':z[a154_0x397dfd(0x221)](a154_0x397dfd(0x1f2)),'column':z[a154_0x397dfd(0x209)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x397dfd(0x1f7)]()})['superRefine']((_0x2ab0d5,_0x208394)=>{const _0x26d821=a154_0x397dfd,_0x330e1c=_0x2ab0d5[_0x26d821(0x220)]['type'];_0x2ab0d5['column']==='timestamp'?!TIMESTAMP_OPERATORS[_0x26d821(0x222)](_0x330e1c)&&_0x208394[_0x26d821(0x1eb)]({'code':_0x26d821(0x1f4),'message':_0x26d821(0x213)+_0x330e1c+'\x27)','path':['operator','type']}):TIMESTAMP_OPERATORS['has'](_0x330e1c)&&_0x208394[_0x26d821(0x1eb)]({'code':_0x26d821(0x1f4),'message':_0x26d821(0x227)+_0x330e1c+_0x26d821(0x1f6),'path':[_0x26d821(0x220),_0x26d821(0x217)]});});export const FilterRuleDefSchema=z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x221)]('And'),'conditions':z[a154_0x397dfd(0x205)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a154_0x397dfd(0x1fb)](()=>z[a154_0x397dfd(0x22f)]({'type':z['literal'](a154_0x397dfd(0x1fe)),'attribute':z[a154_0x397dfd(0x209)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x397dfd(0x1f7)](),'exclude':z[a154_0x397dfd(0x200)]()[a154_0x397dfd(0x1f7)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a154_0x397dfd(0x209)]()[a154_0x397dfd(0x1f7)](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a154_0x397dfd(0x20d)]()[a154_0x397dfd(0x1f7)]()}));export const BehaviorConditionDefSchema=z[a154_0x397dfd(0x1fb)](()=>z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x221)](a154_0x397dfd(0x1e3)),'attribute':z[a154_0x397dfd(0x209)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x397dfd(0x1f7)](),'exclude':z[a154_0x397dfd(0x200)]()[a154_0x397dfd(0x1f7)](),'aggregation':AggregationDefSchema['optional'](),'source':z['string']()['optional'](),'filter':FilterRuleDefSchema[a154_0x397dfd(0x1f7)](),'timeWindow':TimeWindowDefSchema[a154_0x397dfd(0x1f7)](),'limit':z[a154_0x397dfd(0x20d)]()[a154_0x397dfd(0x1f7)]()}));export const ColumnConditionDefSchema=z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x221)](a154_0x397dfd(0x1f2)),'column':z[a154_0x397dfd(0x209)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a154_0x397dfd(0x202),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a154_0x397dfd(0x209)]()['optional']()}));export const SegmentRefConditionDefSchema=z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x20b)]([a154_0x397dfd(0x1e1),a154_0x397dfd(0x223)]),'segment':z['string']()[a154_0x397dfd(0x22e)](0x1,a154_0x397dfd(0x20c))});export const ConditionDefSchema=z[a154_0x397dfd(0x1fb)](()=>z[a154_0x397dfd(0x1ea)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x20b)]([a154_0x397dfd(0x202),'Or']),'conditions':z[a154_0x397dfd(0x205)](ConditionDefSchema),'description':z[a154_0x397dfd(0x209)]()['optional']()}));export const SegmentDefSchema=z[a154_0x397dfd(0x22f)]({'type':z[a154_0x397dfd(0x221)](a154_0x397dfd(0x219))[a154_0x397dfd(0x1f7)](),'name':z[a154_0x397dfd(0x209)]()[a154_0x397dfd(0x22e)](0x1,a154_0x397dfd(0x1ec)),'description':z[a154_0x397dfd(0x209)]()[a154_0x397dfd(0x1f7)](),'folder':z[a154_0x397dfd(0x209)]()['optional'](),'rule':RuleDefSchema[a154_0x397dfd(0x1f7)](),'kind':z[a154_0x397dfd(0x20b)](['batch',a154_0x397dfd(0x1e9),a154_0x397dfd(0x1e2)])[a154_0x397dfd(0x1f7)](),'visible':z[a154_0x397dfd(0x200)]()['optional'](),'activations':z[a154_0x397dfd(0x205)](z[a154_0x397dfd(0x21c)]())[a154_0x397dfd(0x1f7)]()});function a154_0x2c79(){const _0x1990fa=['Last','min','object','CountDistinct','Regexp','include','funnel_stage','Behavior','TimeRange','TimeRange\x20operator\x20requires\x20\x27duration\x27','Count','LessEqual','40PBwOBg','realtime','union','addIssue','Segment\x20name\x20is\x20required','TimeWithinNext','242VmLYpJ','record','value','152826AtpbJe','Column','Equal','custom','12mQnNcd','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','optional','day','\x27\x20requires\x20a\x20time\x20unit','IsNull','lazy','GreaterEqual','TimeRange\x20operator\x20requires\x20\x27from\x27','Value','max','boolean','Max','And','from','134Mvzxak','array','797285ZGppkj','626013BVfFWA','Sum','string','second','enum','Segment\x20reference\x20must\x20not\x20be\x20empty','number','First','Min','3007984uoIaHt','Average','Contain','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','TimeWithinPast','MISSING_TIME_UNIT','544420NEIiyH','type','Less','segment','discriminatedUnion','week','any','Greater','year','duration','operator','literal','has','exclude','Between','21291KSXejf','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Operator\x20\x27','392244KrgKzf','EndWith','superRefine','hour','unit'];a154_0x2c79=function(){return _0x1990fa;};return a154_0x2c79();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
function a154_0x53c2(){const _0x4a2548=['Segment\x20reference\x20must\x20not\x20be\x20empty','TimeRange\x20operator\x20requires\x20\x27duration\x27','1901744tOTDhl','GreaterEqual','string','4SYHnGn','has','Greater','union','Value','Between','include','CountDistinct','Max','EndWith','First','from','TimeWithinNext','unit','any','second','array','value','8706485laDEMF','Operator\x20\x27','5477955JBrISf','segment','TimeRange','hour','TimeRange\x20operator\x20requires\x20\x27from\x27','optional','day','literal','931166BIscub','batch','Column','Less','MISSING_BETWEEN_BOUNDS','Last','107422ouqQzB','operator','record','Behavior','Average','custom','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Contain','week','object','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','discriminatedUnion','Count','timestamp','lazy','month','\x27\x20requires\x20a\x20time\x20unit','27UHSBWq','type','exclude','superRefine','all','column','addIssue','boolean','\x27\x20requires\x20a\x20value','5511968ThKXnj','IsNull','enum','Sum','Segment\x20name\x20is\x20required','MISSING_TIME_UNIT','TimeWithinPast','24167710pHAufC','Min','Regexp','StartWith','min','duration','number','And','516dCUNXM','max','Equal'];a154_0x53c2=function(){return _0x4a2548;};return a154_0x53c2();}const a154_0x4cccfc=a154_0x47f2;(function(_0x3d6ac0,_0x1c433c){const _0x46af7b=a154_0x47f2,_0x280a6d=_0x3d6ac0();while(!![]){try{const _0x469813=-parseInt(_0x46af7b(0x11e))/0x1*(-parseInt(_0x46af7b(0x102))/0x2)+parseInt(_0x46af7b(0x116))/0x3+-parseInt(_0x46af7b(0x13e))/0x4+-parseInt(_0x46af7b(0x114))/0x5+parseInt(_0x46af7b(0xfa))/0x6*(-parseInt(_0x46af7b(0x124))/0x7)+parseInt(_0x46af7b(0xff))/0x8*(-parseInt(_0x46af7b(0x135))/0x9)+parseInt(_0x46af7b(0xf2))/0xa;if(_0x469813===_0x1c433c)break;else _0x280a6d['push'](_0x280a6d['shift']());}catch(_0x1dc20c){_0x280a6d['push'](_0x280a6d['shift']());}}}(a154_0x53c2,0xe8a39));import{z}from'zod';export const OperatorTypeSchema=z['enum'](['Equal',a154_0x4cccfc(0x104),a154_0x4cccfc(0x121),'GreaterEqual','LessEqual','In',a154_0x4cccfc(0x107),'Regexp',a154_0x4cccfc(0xec),a154_0x4cccfc(0xf1),a154_0x4cccfc(0x10e),a154_0x4cccfc(0x12b),a154_0x4cccfc(0xf5),a154_0x4cccfc(0x10b),'TimeRange']);export const TimeUnitSchema=z[a154_0x4cccfc(0xed)]([a154_0x4cccfc(0x111),'minute',a154_0x4cccfc(0x119),a154_0x4cccfc(0x11c),a154_0x4cccfc(0x12c),a154_0x4cccfc(0x133),'year']);function a154_0x47f2(_0x40130a,_0x4a94d1){_0x40130a=_0x40130a-0xec;const _0x53c20c=a154_0x53c2();let _0x47f2f7=_0x53c20c[_0x40130a];return _0x47f2f7;}export const AggregationTypeSchema=z['enum']([a154_0x4cccfc(0x130),a154_0x4cccfc(0xee),a154_0x4cccfc(0x128),a154_0x4cccfc(0xf3),a154_0x4cccfc(0x10a),a154_0x4cccfc(0x109),'First',a154_0x4cccfc(0x123)]);const TemporalValueSchema=z[a154_0x4cccfc(0x105)]([z[a154_0x4cccfc(0x12d)]({'timestamp':z['string']()}),z[a154_0x4cccfc(0x12d)]({'last':z[a154_0x4cccfc(0x105)]([z['number'](),z[a154_0x4cccfc(0x126)](z['string'](),z[a154_0x4cccfc(0xf8)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a154_0x4cccfc(0x105)]([z[a154_0x4cccfc(0x101)](),z[a154_0x4cccfc(0xf8)](),z['boolean'](),TemporalValueSchema,z[a154_0x4cccfc(0x112)](z[a154_0x4cccfc(0x105)]([z[a154_0x4cccfc(0x101)](),z[a154_0x4cccfc(0xf8)](),z[a154_0x4cccfc(0x13c)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a154_0x4cccfc(0xfc),a154_0x4cccfc(0x104),a154_0x4cccfc(0x100),a154_0x4cccfc(0x121),'LessEqual','In',a154_0x4cccfc(0x12b),a154_0x4cccfc(0xf5),a154_0x4cccfc(0x10b),a154_0x4cccfc(0xf4),a154_0x4cccfc(0xf1),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set([a154_0x4cccfc(0xf1),a154_0x4cccfc(0x10e)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a154_0x4cccfc(0x13c)]()[a154_0x4cccfc(0x11b)](),'value':OperatorValueSchema[a154_0x4cccfc(0x11b)](),'min':z[a154_0x4cccfc(0x105)]([z[a154_0x4cccfc(0xf8)](),z['string'](),TemporalValueSchema])[a154_0x4cccfc(0x11b)](),'max':z[a154_0x4cccfc(0x105)]([z[a154_0x4cccfc(0xf8)](),z[a154_0x4cccfc(0x101)](),TemporalValueSchema])[a154_0x4cccfc(0x11b)](),'unit':TimeUnitSchema[a154_0x4cccfc(0x11b)](),'duration':z[a154_0x4cccfc(0x12d)]({'day':z[a154_0x4cccfc(0xf8)]()['optional'](),'week':z[a154_0x4cccfc(0xf8)]()[a154_0x4cccfc(0x11b)](),'month':z[a154_0x4cccfc(0xf8)]()[a154_0x4cccfc(0x11b)](),'year':z[a154_0x4cccfc(0xf8)]()[a154_0x4cccfc(0x11b)](),'hour':z[a154_0x4cccfc(0xf8)]()[a154_0x4cccfc(0x11b)](),'minute':z[a154_0x4cccfc(0xf8)]()[a154_0x4cccfc(0x11b)](),'second':z[a154_0x4cccfc(0xf8)]()[a154_0x4cccfc(0x11b)]()})['optional'](),'from':z['object']({'last':z['union']([z[a154_0x4cccfc(0xf8)](),z[a154_0x4cccfc(0x101)]()]),'unit':TimeUnitSchema})[a154_0x4cccfc(0x11b)](),'reverse':z[a154_0x4cccfc(0x13c)]()['optional']()})[a154_0x4cccfc(0x138)]((_0x5e2e3c,_0x5b7229)=>{const _0x26d22e=a154_0x4cccfc;OPERATORS_REQUIRING_VALUE[_0x26d22e(0x103)](_0x5e2e3c[_0x26d22e(0x136)])&&(_0x5e2e3c['value']===undefined||_0x5e2e3c[_0x26d22e(0x113)]===null)&&_0x5b7229[_0x26d22e(0x13b)]({'code':_0x26d22e(0x129),'message':'Operator\x20\x27'+_0x5e2e3c[_0x26d22e(0x136)]+_0x26d22e(0x13d),'path':[_0x26d22e(0x113)]}),_0x5e2e3c[_0x26d22e(0x136)]===_0x26d22e(0x107)&&_0x5e2e3c[_0x26d22e(0xf6)]===undefined&&_0x5e2e3c[_0x26d22e(0xfb)]===undefined&&_0x5b7229[_0x26d22e(0x13b)]({'code':'custom','message':_0x26d22e(0x12e),'params':{'validationCode':_0x26d22e(0x122)}}),OPERATORS_REQUIRING_UNIT[_0x26d22e(0x103)](_0x5e2e3c[_0x26d22e(0x136)])&&_0x5e2e3c[_0x26d22e(0x113)]!==undefined&&!_0x5e2e3c[_0x26d22e(0x10f)]&&_0x5b7229[_0x26d22e(0x13b)]({'code':_0x26d22e(0x129),'message':_0x26d22e(0x115)+_0x5e2e3c[_0x26d22e(0x136)]+_0x26d22e(0x134),'path':[_0x26d22e(0x10f)],'params':{'validationCode':_0x26d22e(0xf0)}}),_0x5e2e3c[_0x26d22e(0x136)]===_0x26d22e(0x118)&&(!_0x5e2e3c[_0x26d22e(0xf7)]&&_0x5b7229[_0x26d22e(0x13b)]({'code':_0x26d22e(0x129),'message':_0x26d22e(0xfe),'path':[_0x26d22e(0xf7)]}),!_0x5e2e3c[_0x26d22e(0x10d)]&&_0x5b7229[_0x26d22e(0x13b)]({'code':'custom','message':_0x26d22e(0x11a),'path':[_0x26d22e(0x10d)]}));});export const ArrayMatchingSchema=z[a154_0x4cccfc(0x105)]([z[a154_0x4cccfc(0x11d)](a154_0x4cccfc(0x110)),z['literal'](a154_0x4cccfc(0x139)),z['object']({'atLeast':z['number']()}),z[a154_0x4cccfc(0x12d)]({'atMost':z[a154_0x4cccfc(0xf8)]()}),z['object']({'exactly':z[a154_0x4cccfc(0xf8)]()})]);export const AggregationDefSchema=z[a154_0x4cccfc(0x12f)]('type',[z['object']({'type':z[a154_0x4cccfc(0xed)]([a154_0x4cccfc(0xee),a154_0x4cccfc(0xf3),a154_0x4cccfc(0x10a),a154_0x4cccfc(0x128)]),'column':z['string'](),'groupingColumns':z[a154_0x4cccfc(0x112)](z['string']())[a154_0x4cccfc(0x11b)]()}),z[a154_0x4cccfc(0x12d)]({'type':z[a154_0x4cccfc(0x11d)](a154_0x4cccfc(0x130)),'groupingColumns':z[a154_0x4cccfc(0x112)](z[a154_0x4cccfc(0x101)]())['optional']()}),z[a154_0x4cccfc(0x12d)]({'type':z[a154_0x4cccfc(0x11d)](a154_0x4cccfc(0x109)),'columns':z[a154_0x4cccfc(0x112)](z[a154_0x4cccfc(0x101)]())}),z['object']({'type':z[a154_0x4cccfc(0xed)]([a154_0x4cccfc(0x10c),a154_0x4cccfc(0x123)]),'column':z[a154_0x4cccfc(0x101)](),'orderColumn':z[a154_0x4cccfc(0x101)](),'groupingColumns':z[a154_0x4cccfc(0x112)](z[a154_0x4cccfc(0x101)]())[a154_0x4cccfc(0x11b)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a154_0x4cccfc(0xf8)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x4cccfc(0xf1),a154_0x4cccfc(0x10e),a154_0x4cccfc(0x118)]);export const FilterColumnConditionDefSchema=z[a154_0x4cccfc(0x12d)]({'type':z['literal'](a154_0x4cccfc(0x120)),'column':z[a154_0x4cccfc(0x101)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})['superRefine']((_0x16ada3,_0x51d7d6)=>{const _0x3b9c0f=a154_0x4cccfc,_0x241ae8=_0x16ada3['operator']['type'];_0x16ada3[_0x3b9c0f(0x13a)]===_0x3b9c0f(0x131)?!TIMESTAMP_OPERATORS[_0x3b9c0f(0x103)](_0x241ae8)&&_0x51d7d6[_0x3b9c0f(0x13b)]({'code':_0x3b9c0f(0x129),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x241ae8+'\x27)','path':['operator','type']}):TIMESTAMP_OPERATORS[_0x3b9c0f(0x103)](_0x241ae8)&&_0x51d7d6[_0x3b9c0f(0x13b)]({'code':_0x3b9c0f(0x129),'message':_0x3b9c0f(0x115)+_0x241ae8+_0x3b9c0f(0x12a),'path':[_0x3b9c0f(0x125),_0x3b9c0f(0x136)]});});export const FilterRuleDefSchema=z['object']({'type':z['literal'](a154_0x4cccfc(0xf9)),'conditions':z[a154_0x4cccfc(0x112)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a154_0x4cccfc(0x132)](()=>z[a154_0x4cccfc(0x12d)]({'type':z[a154_0x4cccfc(0x11d)](a154_0x4cccfc(0x106)),'attribute':z[a154_0x4cccfc(0x101)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a154_0x4cccfc(0x13c)]()['optional'](),'aggregation':AggregationDefSchema[a154_0x4cccfc(0x11b)](),'source':z['string']()['optional'](),'filter':FilterRuleDefSchema['optional'](),'limit':z['number']()[a154_0x4cccfc(0x11b)]()}));export const BehaviorConditionDefSchema=z[a154_0x4cccfc(0x132)](()=>z['object']({'type':z['literal'](a154_0x4cccfc(0x127)),'attribute':z[a154_0x4cccfc(0x101)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x4cccfc(0x11b)](),'exclude':z[a154_0x4cccfc(0x13c)]()[a154_0x4cccfc(0x11b)](),'aggregation':AggregationDefSchema[a154_0x4cccfc(0x11b)](),'source':z[a154_0x4cccfc(0x101)]()['optional'](),'filter':FilterRuleDefSchema[a154_0x4cccfc(0x11b)](),'timeWindow':TimeWindowDefSchema[a154_0x4cccfc(0x11b)](),'limit':z['number']()[a154_0x4cccfc(0x11b)]()}));export const ColumnConditionDefSchema=z[a154_0x4cccfc(0x12d)]({'type':z[a154_0x4cccfc(0x11d)]('Column'),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z[a154_0x4cccfc(0xed)](['And','Or']),'conditions':z[a154_0x4cccfc(0x112)](ConditionDefSchema),'description':z[a154_0x4cccfc(0x101)]()['optional']()}));export const SegmentRefConditionDefSchema=z[a154_0x4cccfc(0x12d)]({'type':z[a154_0x4cccfc(0xed)]([a154_0x4cccfc(0x108),a154_0x4cccfc(0x137)]),'segment':z['string']()[a154_0x4cccfc(0xf6)](0x1,a154_0x4cccfc(0xfd))});export const ConditionDefSchema=z[a154_0x4cccfc(0x132)](()=>z[a154_0x4cccfc(0x105)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a154_0x4cccfc(0x132)](()=>z[a154_0x4cccfc(0x12d)]({'type':z[a154_0x4cccfc(0xed)]([a154_0x4cccfc(0xf9),'Or']),'conditions':z[a154_0x4cccfc(0x112)](ConditionDefSchema),'description':z[a154_0x4cccfc(0x101)]()[a154_0x4cccfc(0x11b)]()}));export const SegmentDefSchema=z['object']({'type':z[a154_0x4cccfc(0x11d)](a154_0x4cccfc(0x117))[a154_0x4cccfc(0x11b)](),'name':z[a154_0x4cccfc(0x101)]()[a154_0x4cccfc(0xf6)](0x1,a154_0x4cccfc(0xef)),'description':z['string']()[a154_0x4cccfc(0x11b)](),'folder':z['string']()[a154_0x4cccfc(0x11b)](),'rule':RuleDefSchema[a154_0x4cccfc(0x11b)](),'kind':z[a154_0x4cccfc(0xed)]([a154_0x4cccfc(0x11f),'realtime','funnel_stage'])[a154_0x4cccfc(0x11b)](),'visible':z[a154_0x4cccfc(0x13c)]()['optional'](),'activations':z[a154_0x4cccfc(0x112)](z[a154_0x4cccfc(0x110)]())[a154_0x4cccfc(0x11b)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0x53053e=a155_0x98a4;(function(_0x29cc70,_0x46e4d5){const _0x185003=a155_0x98a4,_0x46ad77=_0x29cc70();while(!![]){try{const _0x31bd8d=parseInt(_0x185003(0xe4))/0x1*(-parseInt(_0x185003(0xec))/0x2)+-parseInt(_0x185003(0xe8))/0x3*(-parseInt(_0x185003(0xef))/0x4)+parseInt(_0x185003(0xeb))/0x5*(parseInt(_0x185003(0xdd))/0x6)+parseInt(_0x185003(0xde))/0x7+-parseInt(_0x185003(0xe1))/0x8+-parseInt(_0x185003(0xd7))/0x9*(-parseInt(_0x185003(0xd6))/0xa)+-parseInt(_0x185003(0xf0))/0xb;if(_0x31bd8d===_0x46e4d5)break;else _0x46ad77['push'](_0x46ad77['shift']());}catch(_0x33e887){_0x46ad77['push'](_0x46ad77['shift']());}}}(a155_0x868d,0x9c1a2));import{readFileSync}from'fs';import*as a155_0x5d15e0 from'path';import*as a155_0x2fdee5 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([a155_0x53053e(0xe5),a155_0x53053e(0xdb)]);export function isJourneyDef(_0xdebf90){const _0xa004=a155_0x53053e;return typeof _0xdebf90==='object'&&_0xdebf90!==null&&_0xa004(0xed)in _0xdebf90&&_0xdebf90[_0xa004(0xed)]===_0xa004(0xe6);}export function isCampaignDef(_0x5f7823){const _0x59c6f7=a155_0x53053e;if(typeof _0x5f7823!=='object'||_0x5f7823===null)return![];const _0x55c49e=_0x5f7823,_0x4257ff=VALID_CAMPAIGN_TYPES[_0x59c6f7(0xdc)](_0x55c49e[_0x59c6f7(0xf1)]);if(_0x55c49e['type']===_0x59c6f7(0xe9)&&_0x4257ff)return!![];if(_0x4257ff&&!_0x55c49e[_0x59c6f7(0xed)])return!![];return![];}export function isTemplateDef(_0x1832c9){const _0x24ca77=a155_0x53053e;return typeof _0x1832c9===_0x24ca77(0xe3)&&_0x1832c9!==null&&'type'in _0x1832c9&&_0x1832c9[_0x24ca77(0xed)]===_0x24ca77(0xda);}export function isValidationResult(_0x468df1){const _0x521059=a155_0x53053e;return!(_0x521059(0xd9)in _0x468df1);}export function createParseErrorResult(_0x410365,_0x4fd469,_0x1101b3,_0xab0e51,_0x385d06=a155_0x53053e(0xe2)){const _0x451e52=a155_0x53053e;return{'filePath':_0x410365,'relativePath':_0x4fd469,'source':_0x1101b3,'result':{'valid':![],'errors':[{'level':_0x451e52(0xd4),'path':'','code':_0x451e52(0xe0),'message':_0xab0e51}],'warnings':[]},'fileType':_0x385d06};}export function validateYamlFile(_0x23e2f1,_0x1081fd,_0x2793c5={}){const _0x27a8e8=a155_0x53053e,_0x5aba9f=a155_0x5d15e0[_0x27a8e8(0xd5)](_0x1081fd,_0x23e2f1)||a155_0x5d15e0[_0x27a8e8(0xea)](_0x23e2f1);try{const _0x40927b=readFileSync(_0x23e2f1,'utf-8'),_0x18b641=a155_0x2fdee5[_0x27a8e8(0xd8)](_0x40927b),_0x296551=_0x18b641['toJSON']();if(!_0x296551)return createParseErrorResult(_0x23e2f1,_0x5aba9f,_0x40927b,_0x27a8e8(0xee));let _0x43186d;if(isJourneyDef(_0x296551))_0x43186d='journey';else{if(isCampaignDef(_0x296551))_0x43186d=_0x27a8e8(0xe9);else isTemplateDef(_0x296551)?_0x43186d=_0x27a8e8(0xda):_0x43186d='segment';}if(_0x2793c5[_0x27a8e8(0xe7)]&&_0x43186d!==_0x2793c5['filterType'])return{'filePath':_0x23e2f1,'relativePath':_0x5aba9f,'skipped':!![],'reason':'not\x20a\x20'+_0x2793c5[_0x27a8e8(0xe7)]};const _0x5ef037={'source':_0x40927b,'document':_0x18b641};let _0x97f019;if(_0x43186d===_0x27a8e8(0xe6))_0x97f019=validateJourneyDef(_0x296551,_0x5ef037);else{if(_0x43186d===_0x27a8e8(0xe9))_0x97f019=validateCampaignDef(_0x296551,_0x5ef037);else _0x43186d===_0x27a8e8(0xda)?_0x97f019=validateTemplateDef(_0x296551,_0x5ef037):_0x97f019=validateSegmentDef(_0x296551,_0x5ef037);}return{'filePath':_0x23e2f1,'relativePath':_0x5aba9f,'source':_0x40927b,'result':_0x97f019,'fileType':_0x43186d};}catch(_0x594a30){const _0x475c2c=_0x594a30 instanceof Error?_0x594a30['message']:String(_0x594a30);return createParseErrorResult(_0x23e2f1,_0x5aba9f,'','YAML\x20parse\x20error:\x20'+_0x475c2c);}}export function validateYamlFiles(_0x784ce7,_0x655ac9,_0x5dbdd9={}){return _0x784ce7['map'](_0x2baa70=>validateYamlFile(_0x2baa70,_0x655ac9,_0x5dbdd9));}function a155_0x98a4(_0xd64758,_0x15e2d9){_0xd64758=_0xd64758-0xd4;const _0x868dde=a155_0x868d();let _0x98a471=_0x868dde[_0xd64758];return _0x98a471;}function a155_0x868d(){const _0x3dc998=['has','270zwyZdE','2714201wZobSw','length','YAML_PARSE_ERROR','5661280FDHEdQ','segment','object','622927hggCqO','email','journey','filterType','9jCGdLW','campaign','basename','133230wjsfLP','4sZyfnP','type','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','1369708uIGOtL','14105410wuwZXz','campaign_type','result','error','relative','20LgZSeo','5675058loDKYp','parseDocument','skipped','template','push'];a155_0x868d=function(){return _0x3dc998;};return a155_0x868d();}export function calculateSummary(_0x1ddd6c){const _0x29e635=a155_0x53053e;let _0x26d6db=0x0,_0x311ac4=0x0,_0x4b4fe2=0x0,_0x11249a=0x0;for(const _0x1b9fb3 of _0x1ddd6c){if(!isValidationResult(_0x1b9fb3)){_0x11249a++;continue;}_0x1b9fb3[_0x29e635(0xf2)]['valid']?_0x26d6db++:_0x311ac4++,_0x4b4fe2+=_0x1b9fb3[_0x29e635(0xf2)]['warnings'][_0x29e635(0xdf)];}return{'validCount':_0x26d6db,'invalidCount':_0x311ac4,'warningCount':_0x4b4fe2,'skippedCount':_0x11249a,'hasErrors':_0x311ac4>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d6f8b,_0x24a2dd){const _0x5787e3=a156_0x4089,_0xf4e5b3=_0x2d6f8b();while(!![]){try{const _0x5ef006=-parseInt(_0x5787e3(0x188))/0x1*(parseInt(_0x5787e3(0x16c))/0x2)+parseInt(_0x5787e3(0x175))/0x3+parseInt(_0x5787e3(0x16f))/0x4+-parseInt(_0x5787e3(0x173))/0x5*(-parseInt(_0x5787e3(0x166))/0x6)+parseInt(_0x5787e3(0x170))/0x7+-parseInt(_0x5787e3(0x177))/0x8+-parseInt(_0x5787e3(0x183))/0x9*(parseInt(_0x5787e3(0x18b))/0xa);if(_0x5ef006===_0x24a2dd)break;else _0xf4e5b3['push'](_0xf4e5b3['shift']());}catch(_0x3b1dd3){_0xf4e5b3['push'](_0xf4e5b3['shift']());}}}(a156_0x5fc9,0x25f28));function a156_0x5fc9(){const _0x545127=['map','number','path','warnings','error','message','line','Invalid\x20YAML:\x20expected\x20an\x20object','parse','match','yellow','12MQgDCx','level','repeat','data','column','length','424Grzbmr','location','cyan','613892qzbVob','1570702hvVcgC','range','code','436790aFvtnN','dim','308841iFroQj','errors','293456kaRKjj','getIn','join','push','split','YAML\x20validation\x20error:\x20','pop','contents','safeParse','issues','YAML\x20validation\x20error\x20at\x20\x27','\x27:\x20','266724RDeCyo','min','success','max','red','89ZRgvBK','padStart','object','150TcpFmK','invalid_union'];a156_0x5fc9=function(){return _0x545127;};return a156_0x5fc9();}import*as a156_0x9b1dae from'yaml';import a156_0x44c7e0 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x241c9f,_0x3d1c4b,_0x23ac02){const _0x4e4da6=a156_0x4089;if(!_0x241c9f||!_0x3d1c4b)return undefined;try{let _0x2d4e87=_0x241c9f[_0x4e4da6(0x178)](_0x23ac02,!![]),_0x8b4945=[..._0x23ac02];while((!_0x2d4e87||typeof _0x2d4e87!==_0x4e4da6(0x18a)||!(_0x4e4da6(0x171)in _0x2d4e87)||!_0x2d4e87[_0x4e4da6(0x171)])&&_0x8b4945[_0x4e4da6(0x16b)]>0x0){_0x8b4945[_0x4e4da6(0x17d)](),_0x2d4e87=_0x8b4945['length']>0x0?_0x241c9f['getIn'](_0x8b4945,!![]):_0x241c9f[_0x4e4da6(0x17e)];}if(!_0x2d4e87||typeof _0x2d4e87!==_0x4e4da6(0x18a)||!(_0x4e4da6(0x171)in _0x2d4e87)||!_0x2d4e87[_0x4e4da6(0x171)])return undefined;const [_0x46e762]=_0x2d4e87['range'];return offsetToLocation(_0x3d1c4b,_0x46e762);}catch{return undefined;}}export function offsetToLocation(_0x70bebc,_0x1f36c7){const _0x4681ec=a156_0x4089;let _0x133cab=0x1,_0x13df60=0x1;for(let _0x1dda33=0x0;_0x1dda33<_0x1f36c7&&_0x1dda33<_0x70bebc[_0x4681ec(0x16b)];_0x1dda33++){_0x70bebc[_0x1dda33]==='\x0a'?(_0x133cab++,_0x13df60=0x1):_0x13df60++;}return{'line':_0x133cab,'column':_0x13df60,'offset':_0x1f36c7};}export function pathToArray(_0xa54554){const _0x406f5a=a156_0x4089;if(!_0xa54554)return[];return _0xa54554[_0x406f5a(0x17b)]('.')['flatMap'](_0x654d6f=>{const _0x2e4fe4=_0x406f5a,_0x5bc36f=_0x654d6f[_0x2e4fe4(0x164)](/^(\w+)\[(\d+)\]$/);if(_0x5bc36f)return[_0x5bc36f[0x1],parseInt(_0x5bc36f[0x2],0xa)];return[_0x654d6f];});}export function formatZodPath(_0x2943f6){const _0xb5ded7=a156_0x4089;let _0x13de92='';for(const _0x58a5f7 of _0x2943f6){if(typeof _0x58a5f7===_0xb5ded7(0x15c))_0x13de92+='['+_0x58a5f7+']';else{const _0xf06ea=String(_0x58a5f7);_0x13de92+=_0x13de92?'.'+_0xf06ea:_0xf06ea;}}return _0x13de92;}export function flattenZodIssues(_0x588cf8){const _0x5cfb6d=a156_0x4089,_0x448a4e=[];for(const _0xe68573 of _0x588cf8){if(_0xe68573['code']===_0x5cfb6d(0x15a)&&'errors'in _0xe68573){const _0x3dc0bd=_0xe68573[_0x5cfb6d(0x176)];let _0x61ee7a=_0x3dc0bd[0x0]||[];for(const _0x216815 of _0x3dc0bd){_0x216815[_0x5cfb6d(0x16b)]<_0x61ee7a[_0x5cfb6d(0x16b)]&&(_0x61ee7a=_0x216815);}const _0x358e16=_0x61ee7a[_0x5cfb6d(0x15b)](_0x52fac2=>({..._0x52fac2,'path':[..._0xe68573[_0x5cfb6d(0x15d)],..._0x52fac2[_0x5cfb6d(0x15d)]]}));_0x448a4e[_0x5cfb6d(0x17a)](...flattenZodIssues(_0x358e16));}else _0x448a4e['push'](_0xe68573);}return _0x448a4e;}export function safeParseYaml(_0x1dd83c,_0x27d16c){const _0x4addf0=a156_0x4089,_0x1e729d=a156_0x9b1dae[_0x4addf0(0x163)](_0x1dd83c);if(!_0x1e729d||typeof _0x1e729d!==_0x4addf0(0x18a))throw new Error(_0x4addf0(0x162));const _0x1b481e=_0x27d16c[_0x4addf0(0x17f)](_0x1e729d);if(!_0x1b481e[_0x4addf0(0x185)]){const _0x460e19=_0x1b481e[_0x4addf0(0x15f)][_0x4addf0(0x180)][0x0],_0x19ec9e=formatZodPath(_0x460e19[_0x4addf0(0x15d)]);throw new Error(_0x19ec9e?_0x4addf0(0x181)+_0x19ec9e+_0x4addf0(0x182)+_0x460e19[_0x4addf0(0x160)]:_0x4addf0(0x17c)+_0x460e19[_0x4addf0(0x160)]);}return _0x1b481e[_0x4addf0(0x169)];}export function formatIssueWithContext(_0x4d5c2d,_0x439139,_0xdc5444){const _0x16bdd7=a156_0x4089,_0x36ac37=[],_0x1010f2=_0x4d5c2d['level']===_0x16bdd7(0x15f),_0x549192=_0x1010f2?a156_0x44c7e0[_0x16bdd7(0x187)]:a156_0x44c7e0[_0x16bdd7(0x165)],_0x593010=_0x1010f2?a156_0x44c7e0[_0x16bdd7(0x187)]:a156_0x44c7e0[_0x16bdd7(0x165)],_0x3bca32=_0xdc5444?a156_0x44c7e0[_0x16bdd7(0x16e)](_0xdc5444+':'):'';if(_0x4d5c2d[_0x16bdd7(0x16d)]){const _0x3fd03b=a156_0x44c7e0[_0x16bdd7(0x16e)](_0x4d5c2d[_0x16bdd7(0x16d)][_0x16bdd7(0x161)]+':'+_0x4d5c2d[_0x16bdd7(0x16d)][_0x16bdd7(0x16a)]);_0x36ac37['push'](''+_0x3bca32+_0x3fd03b+':\x20'+_0x549192(_0x4d5c2d[_0x16bdd7(0x167)])+'\x20'+_0x593010('['+_0x4d5c2d[_0x16bdd7(0x172)]+']'));}else _0x36ac37['push'](''+_0x3bca32+a156_0x44c7e0[_0x16bdd7(0x174)](_0x4d5c2d[_0x16bdd7(0x15d)])+':\x20'+_0x549192(_0x4d5c2d[_0x16bdd7(0x167)])+'\x20'+_0x593010('['+_0x4d5c2d[_0x16bdd7(0x172)]+']'));_0x36ac37[_0x16bdd7(0x17a)](_0x4d5c2d[_0x16bdd7(0x160)]);if(_0x4d5c2d['location']&&_0x439139){const _0x37afe9=_0x439139[_0x16bdd7(0x17b)]('\x0a'),{line:_0x283094,column:_0x2cbef1}=_0x4d5c2d[_0x16bdd7(0x16d)],_0x52d92d=Math[_0x16bdd7(0x186)](0x1,_0x283094-0x1),_0x1f7273=Math[_0x16bdd7(0x184)](_0x37afe9[_0x16bdd7(0x16b)],_0x283094+0x1);_0x36ac37[_0x16bdd7(0x17a)]('');for(let _0x1daee2=_0x52d92d;_0x1daee2<=_0x1f7273;_0x1daee2++){const _0x1a75e1=_0x37afe9[_0x1daee2-0x1]||'',_0x295178=a156_0x44c7e0[_0x16bdd7(0x174)](_0x1daee2['toString']()[_0x16bdd7(0x189)](0x4)),_0x5328cf=a156_0x44c7e0['dim']('\x20|\x20');if(_0x1daee2===_0x283094){_0x36ac37[_0x16bdd7(0x17a)]('\x20\x20'+_0x295178+_0x5328cf+_0x549192(_0x1a75e1));const _0x4487ed='\x20'[_0x16bdd7(0x168)](0x4+0x3+_0x2cbef1-0x1);_0x36ac37['push']('\x20\x20'+_0x4487ed+_0x549192('^'));}else _0x36ac37[_0x16bdd7(0x17a)]('\x20\x20'+_0x295178+_0x5328cf+a156_0x44c7e0[_0x16bdd7(0x174)](_0x1a75e1));}}return _0x36ac37[_0x16bdd7(0x179)]('\x0a');}function a156_0x4089(_0x5dbee7,_0x47db8b){_0x5dbee7=_0x5dbee7-0x15a;const _0x5fc94f=a156_0x5fc9();let _0x4089f5=_0x5fc94f[_0x5dbee7];return _0x4089f5;}export function formatValidationResult(_0x570f59,_0x33ac27,_0x3694a8){const _0x213ee9=a156_0x4089,_0xa50492=[];for(const _0x4181bb of _0x570f59[_0x213ee9(0x176)]){_0xa50492[_0x213ee9(0x17a)](formatIssueWithContext(_0x4181bb,_0x33ac27,_0x3694a8)),_0xa50492['push']('');}for(const _0x1a0358 of _0x570f59[_0x213ee9(0x15e)]){_0xa50492['push'](formatIssueWithContext(_0x1a0358,_0x33ac27,_0x3694a8)),_0xa50492['push']('');}return _0xa50492[_0x213ee9(0x179)]('\x0a');}
|