@treasuredata/tdx 2026.3.17 → 2026.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a144_0x4c01(){const _0x46a9c3=['10499202LRBraS','data','.filter','MISSING_NAME','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','issues','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','error','invalid_value','includes','INVALID_OPERATOR_TYPE','params','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20','source','1532610ohakRt','type','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','INVALID_ARRAY_MATCHING','MISSING_SEGMENT_REFERENCE','SEGMENT_SCHEMA_ERROR','validationCode','.type','code','path','filter','595462UfIEzN','4506864oTocAn','push','Behavior\x20source\x20\x27','rule','Attribute\x20\x27','rule.type','map','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','aggregation','endsWith','safeParse','name','EMPTY_CONDITIONS','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','length','attribute','conditions','.conditions','25spFeBb','.operator.type','arrayMatching','361896YbVnVz','.operator.value','EMPTY_ATTRIBUTE','warning','MISSING_OPERATOR_VALUE','MISSING_BETWEEN_BOUNDS','custom','526564wtJUGQ','.attribute','message','success','3CPpISD','1994526uCEAwi','MISSING_TIME_UNIT','.conditions[','level','BEHAVIOR_SOURCE_MISSING_FILTER','symbol','.source','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','skipSchema','MISSING_CONDITIONS','NESTED_CONDITION_GROUP','Attribute\x20name\x20cannot\x20be\x20empty','document','\x27\x20with\x20attribute\x20\x27'];a144_0x4c01=function(){return _0x46a9c3;};return a144_0x4c01();}(function(_0xc72bea,_0x1494a9){const _0xdcd780=a144_0x51d6,_0x5e3333=_0xc72bea();while(!![]){try{const _0x47af96=parseInt(_0xdcd780(0x195))/0x1*(parseInt(_0xdcd780(0x18a))/0x2)+parseInt(_0xdcd780(0x196))/0x3+parseInt(_0xdcd780(0x191))/0x4*(parseInt(_0xdcd780(0x187))/0x5)+parseInt(_0xdcd780(0x1b2))/0x6+parseInt(_0xdcd780(0x1be))/0x7+-parseInt(_0xdcd780(0x1bf))/0x8+-parseInt(_0xdcd780(0x1a4))/0x9;if(_0x47af96===_0x1494a9)break;else _0x5e3333['push'](_0x5e3333['shift']());}catch(_0x40e13c){_0x5e3333['push'](_0x5e3333['shift']());}}}(a144_0x4c01,0x74528));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x50632a,_0x210639={},_0x5b121e={}){const _0x4b4f48=a144_0x51d6;if(_0x5b121e[_0x4b4f48(0x19e)])return runSemanticChecks(_0x50632a,_0x210639);const _0x4206e3=SegmentDefSchema['safeParse'](_0x50632a);if(_0x4206e3[_0x4b4f48(0x194)])return runSemanticChecks(_0x4206e3[_0x4b4f48(0x1a5)],_0x210639);return zodErrorsToValidationResult(_0x4206e3[_0x4b4f48(0x1ab)],_0x210639);}export function validateRuleDef(_0x1b9ae6,_0xe8111,_0x1fa856){const _0x36ea68=a144_0x51d6;if(!_0x1b9ae6)return[];const _0x589ca8=RuleDefSchema[_0x36ea68(0x17f)](_0x1b9ae6);if(_0x589ca8[_0x36ea68(0x194)])return checkRule(_0x589ca8['data'],_0xe8111,_0x1fa856);const _0x5947c4=flattenZodIssues(_0x589ca8[_0x36ea68(0x1ab)][_0x36ea68(0x1a9)]);return _0x5947c4['map'](_0x281570=>{const _0x413ba3=_0x36ea68,_0x578e64=formatZodPath(_0x281570[_0x413ba3(0x1bc)]),_0x2d49e3=_0x578e64?_0xe8111+'.'+_0x578e64:_0xe8111,_0x4995b9=mapZodIssueToCode(_0x281570,_0x578e64),_0x3360d2=getLocationFromPath(_0x1fa856[_0x413ba3(0x1a2)],_0x1fa856['source'],pathToArray(_0x2d49e3));return{'level':_0x413ba3(0x1ab),'path':_0x2d49e3,'code':_0x4995b9,'message':_0x281570[_0x413ba3(0x193)],..._0x3360d2&&{'location':_0x3360d2}};});}function zodErrorsToValidationResult(_0x286c2c,_0x1e282f){const _0xb0e4c1=a144_0x51d6,_0x5c01a1=flattenZodIssues(_0x286c2c[_0xb0e4c1(0x1a9)]),_0x25e224=_0x5c01a1[_0xb0e4c1(0x17b)](_0x1a5ba9=>{const _0x5933e0=_0xb0e4c1,_0x52eca1=formatZodPath(_0x1a5ba9['path']),_0x1e533f=mapZodIssueToCode(_0x1a5ba9,_0x52eca1),_0x3676d6=getLocationFromPath(_0x1e282f[_0x5933e0(0x1a2)],_0x1e282f['source'],_0x1a5ba9[_0x5933e0(0x1bc)][_0x5933e0(0x17b)](_0xf46549=>typeof _0xf46549===_0x5933e0(0x19b)?String(_0xf46549):_0xf46549));return{'level':_0x5933e0(0x1ab),'path':_0x52eca1,'code':_0x1e533f,'message':_0x1a5ba9[_0x5933e0(0x193)],..._0x3676d6&&{'location':_0x3676d6}};});return{'valid':![],'errors':_0x25e224,'warnings':[]};}function a144_0x51d6(_0x1403d8,_0x4d0b8d){_0x1403d8=_0x1403d8-0x17a;const _0x4c01a1=a144_0x4c01();let _0x51d671=_0x4c01a1[_0x1403d8];return _0x51d671;}function mapZodIssueToCode(_0x3d5cfa,_0x3fa518){const _0x3c8efa=a144_0x51d6,_0x46948f=_0x3d5cfa['code']===_0x3c8efa(0x190)?_0x3d5cfa[_0x3c8efa(0x1af)]:undefined;if(_0x3fa518===_0x3c8efa(0x180))return _0x3c8efa(0x1a7);if(_0x3fa518===_0x3c8efa(0x17a)||_0x3fa518['endsWith'](_0x3c8efa(0x1ba))){if(_0x3d5cfa[_0x3c8efa(0x1bb)]===_0x3c8efa(0x1ac)){if(_0x3fa518===_0x3c8efa(0x17a)||_0x3fa518['match'](/\.conditions\[\d+\]\.type$/))return'INVALID_RULE_TYPE';}}if(_0x3fa518[_0x3c8efa(0x17e)](_0x3c8efa(0x188)))return _0x3c8efa(0x1ae);if(_0x3fa518[_0x3c8efa(0x17e)](_0x3c8efa(0x18b)))return _0x3c8efa(0x18e);if(_0x46948f?.[_0x3c8efa(0x1b9)]===_0x3c8efa(0x18f))return _0x3c8efa(0x18f);if(_0x46948f?.[_0x3c8efa(0x1b9)]==='MISSING_TIME_UNIT')return _0x3c8efa(0x197);if(_0x3fa518[_0x3c8efa(0x17e)](_0x3c8efa(0x186))||_0x3fa518==='conditions')return _0x3c8efa(0x19f);if(_0x3fa518[_0x3c8efa(0x1ad)](_0x3c8efa(0x189)))return _0x3c8efa(0x1b6);if(_0x3fa518[_0x3c8efa(0x17e)]('.segment'))return _0x3c8efa(0x1b7);return _0x3c8efa(0x1b8);}function runSemanticChecks(_0x4cd1f5,_0x59475d){const _0x53e101=a144_0x51d6,_0x15b74b=[];_0x4cd1f5[_0x53e101(0x1c2)]&&_0x15b74b[_0x53e101(0x1c0)](...checkRule(_0x4cd1f5[_0x53e101(0x1c2)],_0x53e101(0x1c2),_0x59475d));const _0x1ff78f=_0x15b74b['filter'](_0x382621=>_0x382621['level']===_0x53e101(0x1ab)),_0x21acbe=_0x15b74b[_0x53e101(0x1bd)](_0x56a735=>_0x56a735[_0x53e101(0x199)]==='warning');return{'valid':_0x1ff78f[_0x53e101(0x183)]===0x0,'errors':_0x1ff78f,'warnings':_0x21acbe};}function checkRule(_0x33763b,_0x4369f7,_0x25d27b){const _0x2831aa=a144_0x51d6,_0xd523bb=[];if(_0x33763b[_0x2831aa(0x185)]['length']===0x0)return _0xd523bb[_0x2831aa(0x1c0)]({'level':_0x2831aa(0x1ab),'path':_0x4369f7+_0x2831aa(0x186),'code':_0x2831aa(0x181),'message':_0x2831aa(0x1b5),'location':getLocationFromPath(_0x25d27b[_0x2831aa(0x1a2)],_0x25d27b[_0x2831aa(0x1b1)],pathToArray(_0x4369f7+_0x2831aa(0x186)))}),_0xd523bb;return _0xd523bb[_0x2831aa(0x1c0)](...checkConditions(_0x33763b['conditions'],_0x4369f7,_0x25d27b)),_0xd523bb;}function checkConditions(_0x28bcdd,_0x35dfe2,_0x703b9f){const _0x57ec1f=a144_0x51d6,_0x5911f8=[];for(let _0x22c24e=0x0;_0x22c24e<_0x28bcdd[_0x57ec1f(0x183)];_0x22c24e++){const _0x2ab73e=_0x28bcdd[_0x22c24e],_0x308344=_0x35dfe2+_0x57ec1f(0x198)+_0x22c24e+']';_0x5911f8[_0x57ec1f(0x1c0)](...checkCondition(_0x2ab73e,_0x308344,_0x703b9f));}return _0x5911f8;}function checkCondition(_0x34a19f,_0x3417a4,_0x38bb0d){const _0x5d4c35=a144_0x51d6,_0x4a047f=[];if(_0x34a19f[_0x5d4c35(0x1b3)]==='And'||_0x34a19f[_0x5d4c35(0x1b3)]==='Or')return _0x34a19f[_0x5d4c35(0x185)][_0x5d4c35(0x183)]===0x0?_0x4a047f[_0x5d4c35(0x1c0)]({'level':'error','path':_0x3417a4+_0x5d4c35(0x186),'code':'EMPTY_CONDITIONS','message':_0x34a19f[_0x5d4c35(0x1b3)]+_0x5d4c35(0x17c),'location':getLocationFromPath(_0x38bb0d['document'],_0x38bb0d[_0x5d4c35(0x1b1)],pathToArray(_0x3417a4+'.conditions'))}):_0x4a047f[_0x5d4c35(0x1c0)]({'level':'error','path':_0x3417a4,'code':_0x5d4c35(0x1a0),'message':_0x34a19f[_0x5d4c35(0x1b3)]+'\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20'+_0x5d4c35(0x1b0)+'use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','location':getLocationFromPath(_0x38bb0d[_0x5d4c35(0x1a2)],_0x38bb0d[_0x5d4c35(0x1b1)],pathToArray(_0x3417a4))}),_0x4a047f;if(_0x34a19f['type']==='Value'||_0x34a19f[_0x5d4c35(0x1b3)]==='Behavior'){const _0x2c830a=_0x34a19f,_0x4a5391=_0x2c830a[_0x5d4c35(0x1b1)],_0x8c8de2=_0x2c830a[_0x5d4c35(0x17d)],_0x31b6ec=_0x4a5391||_0x8c8de2;(!_0x2c830a[_0x5d4c35(0x184)]||_0x2c830a['attribute']==='')&&(!_0x31b6ec&&_0x4a047f[_0x5d4c35(0x1c0)]({'level':_0x5d4c35(0x1ab),'path':_0x3417a4+_0x5d4c35(0x192),'code':_0x5d4c35(0x18c),'message':_0x5d4c35(0x1a1),'location':getLocationFromPath(_0x38bb0d['document'],_0x38bb0d[_0x5d4c35(0x1b1)],pathToArray(_0x3417a4+_0x5d4c35(0x192)))}));_0x2c830a[_0x5d4c35(0x1bd)]&&_0x4a047f[_0x5d4c35(0x1c0)](...checkRule(_0x2c830a['filter'],_0x3417a4+_0x5d4c35(0x1a6),_0x38bb0d));if(_0x2c830a[_0x5d4c35(0x1b1)]){const _0x2a6894=_0x2c830a['attribute']&&_0x2c830a['attribute']!=='';_0x2a6894&&!_0x2c830a['filter']&&_0x4a047f[_0x5d4c35(0x1c0)]({'level':_0x5d4c35(0x1ab),'path':_0x3417a4+_0x5d4c35(0x19c),'code':_0x5d4c35(0x19a),'message':_0x5d4c35(0x1c1)+_0x2c830a[_0x5d4c35(0x1b1)]+_0x5d4c35(0x1a3)+_0x2c830a[_0x5d4c35(0x184)]+'\x27\x20'+_0x5d4c35(0x1a8)+_0x5d4c35(0x19d)+_0x5d4c35(0x1b4),'location':getLocationFromPath(_0x38bb0d[_0x5d4c35(0x1a2)],_0x38bb0d['source'],pathToArray(_0x3417a4+'.source'))}),_0x2a6894&&_0x2c830a['filter']&&_0x4a047f[_0x5d4c35(0x1c0)]({'level':_0x5d4c35(0x18d),'path':_0x3417a4+_0x5d4c35(0x192),'code':_0x5d4c35(0x182),'message':_0x5d4c35(0x1c3)+_0x2c830a[_0x5d4c35(0x184)]+_0x5d4c35(0x1aa)+'For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','location':getLocationFromPath(_0x38bb0d['document'],_0x38bb0d[_0x5d4c35(0x1b1)],pathToArray(_0x3417a4+_0x5d4c35(0x192)))});}}return _0x4a047f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29f5ac,_0x2b2128){const _0x49b84c=a145_0x5080,_0x43b35a=_0x29f5ac();while(!![]){try{const _0x271bc5=parseInt(_0x49b84c(0x122))/0x1+-parseInt(_0x49b84c(0x141))/0x2+-parseInt(_0x49b84c(0x10e))/0x3+-parseInt(_0x49b84c(0x13b))/0x4+parseInt(_0x49b84c(0x130))/0x5+-parseInt(_0x49b84c(0x143))/0x6+parseInt(_0x49b84c(0x11a))/0x7;if(_0x271bc5===_0x2b2128)break;else _0x43b35a['push'](_0x43b35a['shift']());}catch(_0x10f8ca){_0x43b35a['push'](_0x43b35a['shift']());}}}(a145_0x4b17,0x35749));function a145_0x4b17(){const _0x2330a5=['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','parse','context','File\x20not\x20found','104984FEIWuX','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','string','scopedFolderPath','file','relative','756700SZkkzl','journey','628074VmYinT','parentSegment','resourceType','690591sSZPZd','no_parent','exists','No\x20tdx.json\x20found\x20for\x20file:\x20','stat','Not\x20a\x20YAML\x20file:\x20','parent_segment','error','segmentName','directory','readFile','join','2779854Xfoefs','trim','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','type','includes','tdx.json','File\x20not\x20found:\x20','match','151010Srvvsg','No\x20tdx.json\x20found','no_config','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','isDirectory','root','message','invalid_yaml','parent_name','folderPath','dirname','isScoped','configDir','replace','2051465wsNqVW','file_not_found','resolve','cwd','isFile','basename','startsWith'];a145_0x4b17=function(){return _0x2330a5;};return a145_0x4b17();}import a145_0x6df80f from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';function a145_0x5080(_0x2727b1,_0x3f37f0){_0x2727b1=_0x2727b1-0x10d;const _0x4b1733=a145_0x4b17();let _0x508036=_0x4b1733[_0x2727b1];return _0x508036;}import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x2e0dc5){const _0x5a1a6b=a145_0x5080;return _0x2e0dc5[_0x5a1a6b(0x11d)]!=='error';}export function isScopedResolution(_0x5e3342){const _0x535ff5=a145_0x5080;return _0x5e3342[_0x535ff5(0x11d)]===_0x535ff5(0x117)||_0x5e3342[_0x535ff5(0x11d)]==='file'||_0x5e3342['type']===_0x535ff5(0x139);}export function getScopedDetails(_0x42e6e3){const _0x3ba30b=a145_0x5080;if(isScopedResolution(_0x42e6e3))return{'isScoped':_0x42e6e3[_0x3ba30b(0x12d)],'scopedFolderPath':_0x42e6e3[_0x3ba30b(0x13e)]};return undefined;}async function findTdxConfigAsync(_0x550580,_0x10bafe){const _0x436106=a145_0x5080;let _0xdb59da=a145_0x6df80f[_0x436106(0x132)](_0x550580);const _0x2ab3af=a145_0x6df80f['parse'](_0xdb59da)[_0x436106(0x127)];while(_0xdb59da!==_0x2ab3af){const _0x2d829f=a145_0x6df80f[_0x436106(0x119)](_0xdb59da,_0x436106(0x11f));if(await _0x10bafe[_0x436106(0x110)](_0x2d829f))try{const _0x341c15=await _0x10bafe[_0x436106(0x118)](_0x2d829f),_0x45b437=JSON[_0x436106(0x138)](_0x341c15);if(_0x45b437['parent_segment']&&typeof _0x45b437[_0x436106(0x114)]===_0x436106(0x13d))return{'configPath':_0x2d829f,'configDir':_0xdb59da,'parentSegment':_0x45b437[_0x436106(0x114)]};}catch{}_0xdb59da=a145_0x6df80f[_0x436106(0x12c)](_0xdb59da);}return null;}function calculateScopedPath(_0x1aca6d,_0x594c73){const _0x2c1d17=a145_0x5080,_0x4d7b76=a145_0x6df80f[_0x2c1d17(0x140)](_0x594c73,_0x1aca6d),_0x36c4ac=_0x4d7b76!==''&&_0x4d7b76!=='.'&&!_0x4d7b76[_0x2c1d17(0x136)]('..');return{'isScoped':_0x36c4ac,'scopedFolderPath':_0x36c4ac?_0x4d7b76[_0x2c1d17(0x12f)](/\\/g,'/'):''};}export async function resolveTarget(_0xadef8c){const _0x27834c=a145_0x5080,{arg:_0x53c451,contextParent:_0x15892,cwd:cwd=process[_0x27834c(0x133)](),fs:fs=nodeFileSystem}=_0xadef8c;if(_0x53c451&&isYamlFilePath(_0x53c451))try{const _0x2d0ac4=await resolveYamlFilePath(_0x53c451,fs),_0x5ae49d=a145_0x6df80f[_0x27834c(0x132)](_0x53c451),_0x27a100=a145_0x6df80f[_0x27834c(0x12c)](_0x5ae49d),_0x293035=await findTdxConfigAsync(_0x27a100,fs);if(!_0x293035){if(_0x15892){const _0x30f83c=a145_0x6df80f[_0x27834c(0x12c)](_0x5ae49d);return{'type':_0x27834c(0x13f),'parentName':_0x15892,'targetDir':_0x30f83c,'configRoot':_0x30f83c,'filePath':_0x5ae49d,'resourceName':_0x2d0ac4['segmentName'],'folderPath':_0x2d0ac4[_0x27834c(0x12b)],'resourceType':_0x2d0ac4[_0x27834c(0x10d)],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x27834c(0x124),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x53c451,'arg':_0x53c451,'helpText':_0x27834c(0x125)};}const _0x182ae9=calculateScopedPath(_0x27a100,_0x293035[_0x27834c(0x12e)]);return{'type':_0x27834c(0x13f),'parentName':_0x293035['parentSegment'],'targetDir':_0x293035[_0x27834c(0x12e)],'configRoot':_0x293035[_0x27834c(0x12e)],'filePath':_0x5ae49d,'resourceName':_0x2d0ac4[_0x27834c(0x116)],'folderPath':_0x2d0ac4[_0x27834c(0x12b)],'resourceType':_0x2d0ac4[_0x27834c(0x10d)],'isScoped':_0x182ae9['isScoped'],'scopedFolderPath':_0x182ae9[_0x27834c(0x13e)]};}catch(_0x1b9913){const _0x47d797=_0x1b9913 instanceof Error?_0x1b9913[_0x27834c(0x128)]:String(_0x1b9913);if(_0x47d797[_0x27834c(0x11e)](_0x27834c(0x13a)))return{'type':_0x27834c(0x115),'errorCode':_0x27834c(0x131),'message':_0x27834c(0x120)+_0x53c451,'arg':_0x53c451};if(_0x47d797['includes'](_0x27834c(0x123))){if(_0x15892){const _0x585722=a145_0x6df80f[_0x27834c(0x132)](_0x53c451);if(await fs[_0x27834c(0x110)](_0x585722)){const _0x4ed967=a145_0x6df80f[_0x27834c(0x12c)](_0x585722),_0x28bd8b=await fs[_0x27834c(0x118)](_0x585722),_0x36f7a9=_0x28bd8b[_0x27834c(0x121)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x5152b5=_0x28bd8b[_0x27834c(0x121)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1fef43=_0x36f7a9?_0x36f7a9[0x1][_0x27834c(0x11b)]():a145_0x6df80f[_0x27834c(0x135)](_0x53c451,a145_0x6df80f['extname'](_0x53c451)),_0x4f9cea=_0x5152b5&&_0x5152b5[0x1][_0x27834c(0x11b)]()===_0x27834c(0x142)?_0x27834c(0x142):'segment';return{'type':'file','parentName':_0x15892,'targetDir':_0x4ed967,'configRoot':_0x4ed967,'filePath':_0x585722,'resourceName':_0x1fef43,'folderPath':'','resourceType':_0x4f9cea,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x27834c(0x115),'errorCode':_0x27834c(0x124),'message':_0x27834c(0x111)+_0x53c451,'arg':_0x53c451,'helpText':_0x27834c(0x125)};}return{'type':_0x27834c(0x115),'errorCode':_0x27834c(0x129),'message':_0x47d797,'arg':_0x53c451};}if(_0x53c451){const _0x111b16=a145_0x6df80f[_0x27834c(0x132)](cwd,_0x53c451);let _0x2f2810=null;try{_0x2f2810=await fs[_0x27834c(0x112)](_0x111b16);}catch{}if(_0x2f2810?.[_0x27834c(0x126)]()){const _0x423a4c=await findTdxConfigAsync(_0x111b16,fs);if(_0x423a4c){const _0x178edb=calculateScopedPath(_0x111b16,_0x423a4c[_0x27834c(0x12e)]);return{'type':_0x27834c(0x117),'parentName':_0x423a4c[_0x27834c(0x144)],'targetDir':_0x111b16,'configRoot':_0x423a4c[_0x27834c(0x12e)],'isScoped':_0x178edb[_0x27834c(0x12d)],'scopedFolderPath':_0x178edb['scopedFolderPath']};}if(_0x15892)return{'type':_0x27834c(0x117),'parentName':_0x15892,'targetDir':_0x111b16,'configRoot':_0x111b16,'isScoped':![],'scopedFolderPath':''};return{'type':_0x27834c(0x115),'errorCode':'no_config','message':_0x27834c(0x11c)+_0x53c451,'arg':_0x53c451,'helpText':_0x27834c(0x125)};}if(_0x2f2810?.[_0x27834c(0x134)]())return{'type':_0x27834c(0x115),'errorCode':_0x27834c(0x129),'message':_0x27834c(0x113)+_0x53c451,'arg':_0x53c451,'helpText':_0x27834c(0x13c)};const _0x422b1=sanitizeFileName(_0x53c451),_0x1e9c85=getSegmentRootDir(_0x422b1,cwd);return{'type':_0x27834c(0x12a),'parentName':_0x53c451,'targetDir':_0x1e9c85,'configRoot':_0x1e9c85};}const _0x29933c=await findTdxConfigAsync(cwd,fs);if(_0x29933c){const _0xfc3628=calculateScopedPath(cwd,_0x29933c[_0x27834c(0x12e)]);return{'type':_0x27834c(0x139),'parentName':_0x29933c['parentSegment'],'targetDir':cwd,'configRoot':_0x29933c[_0x27834c(0x12e)],'isScoped':_0xfc3628[_0x27834c(0x12d)],'scopedFolderPath':_0xfc3628[_0x27834c(0x13e)]};}if(_0x15892){const _0x284894=sanitizeFileName(_0x15892),_0x4f32a7=getSegmentRootDir(_0x284894,cwd);return{'type':'context','parentName':_0x15892,'targetDir':_0x4f32a7,'configRoot':_0x4f32a7,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x27834c(0x115),'errorCode':_0x27834c(0x10f),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x27834c(0x137)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x2eb76a=a146_0x16ea;(function(_0x40b6c2,_0x313978){const _0x4fe66b=a146_0x16ea,_0x2f7be5=_0x40b6c2();while(!![]){try{const _0x3519e3=-parseInt(_0x4fe66b(0x189))/0x1+-parseInt(_0x4fe66b(0x185))/0x2+parseInt(_0x4fe66b(0x191))/0x3*(-parseInt(_0x4fe66b(0x186))/0x4)+parseInt(_0x4fe66b(0x197))/0x5+parseInt(_0x4fe66b(0x190))/0x6+-parseInt(_0x4fe66b(0x183))/0x7+parseInt(_0x4fe66b(0x184))/0x8*(parseInt(_0x4fe66b(0x198))/0x9);if(_0x3519e3===_0x313978)break;else _0x2f7be5['push'](_0x2f7be5['shift']());}catch(_0x1b1e42){_0x2f7be5['push'](_0x2f7be5['shift']());}}}(a146_0x47e2,0x25f8d));import{existsSync,readFileSync}from'fs';import a146_0x396b83 from'path';function a146_0x16ea(_0x18d055,_0x2bf966){_0x18d055=_0x18d055-0x181;const _0x47e235=a146_0x47e2();let _0x16eab7=_0x47e235[_0x18d055];return _0x16eab7;}const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a146_0x2eb76a(0x18e);export function findTdxConfigPath(_0x23db29=process[a146_0x2eb76a(0x193)]()){const _0x490cc3=a146_0x2eb76a;let _0x26a15d=a146_0x396b83[_0x490cc3(0x181)](_0x23db29);const _0x110fd6=a146_0x396b83[_0x490cc3(0x194)](_0x26a15d)['root'];while(_0x26a15d!==_0x110fd6){const _0x4b6c73=a146_0x396b83['join'](_0x26a15d,TDX_CONFIG_FILE);if(existsSync(_0x4b6c73))return _0x4b6c73;_0x26a15d=a146_0x396b83[_0x490cc3(0x192)](_0x26a15d);}return null;}export function loadTdxConfig(_0x2ed2fe){const _0x5150fe=a146_0x2eb76a,_0x4f6034=readFileSync(_0x2ed2fe,'utf-8');let _0x37af05;try{_0x37af05=JSON[_0x5150fe(0x194)](_0x4f6034);}catch{throw new Error(_0x5150fe(0x18a)+_0x2ed2fe);}if(!_0x37af05||typeof _0x37af05!==_0x5150fe(0x182))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x2460af=_0x37af05,_0x19a243=_0x2460af['parent_segment']&&typeof _0x2460af[_0x5150fe(0x18d)]===_0x5150fe(0x18f),_0x1af856=_0x2460af[_0x5150fe(0x187)]&&typeof _0x2460af['engage_workspace']===_0x5150fe(0x18f);if(!_0x19a243&&!_0x1af856)throw new Error(_0x5150fe(0x195));const _0x4e23de={};return _0x19a243&&(_0x4e23de[_0x5150fe(0x18d)]=_0x2460af[_0x5150fe(0x18d)]),_0x1af856&&(_0x4e23de[_0x5150fe(0x187)]=_0x2460af[_0x5150fe(0x187)]),_0x4e23de;}export function findTdxConfig(_0x586e86=process[a146_0x2eb76a(0x193)]()){const _0x2c93cc=a146_0x2eb76a,_0x52e580=findTdxConfigPath(_0x586e86);if(!_0x52e580)throw new Error(_0x2c93cc(0x196));const _0x2da63f=loadTdxConfig(_0x52e580),_0x565198=a146_0x396b83[_0x2c93cc(0x192)](_0x52e580);return{'config':_0x2da63f,'configPath':_0x52e580,'configDir':_0x565198};}export function tryFindTdxConfig(_0x4d2bfe){try{return findTdxConfig(_0x4d2bfe);}catch{return null;}}export function getSegmentRootDir(_0x375f8b,_0x130dcd=process[a146_0x2eb76a(0x193)]()){const _0x1c96d3=a146_0x2eb76a;return a146_0x396b83[_0x1c96d3(0x18c)](_0x130dcd,SEGMENTS_DIR,_0x375f8b);}export function getTdxConfigPath(_0x5dec8e,_0x5b5d35=process['cwd']()){const _0x49fc53=a146_0x2eb76a;return a146_0x396b83[_0x49fc53(0x18c)](getSegmentRootDir(_0x5dec8e,_0x5b5d35),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5d9d86,_0x323fee){const _0x1e5fdf=a146_0x2eb76a,_0x447f5b=a146_0x396b83[_0x1e5fdf(0x181)](_0x5d9d86),_0x4f9f7f=a146_0x396b83[_0x1e5fdf(0x188)](_0x323fee,_0x447f5b);if(_0x4f9f7f['startsWith']('..'))return'';return _0x4f9f7f;}export function localPathToTdFolderPath(_0x143b71){const _0x38feca=a146_0x2eb76a,_0x2ee642=a146_0x396b83[_0x38feca(0x192)](_0x143b71);if(_0x2ee642==='.'||_0x2ee642==='')return'';return _0x2ee642[_0x38feca(0x18b)](/\\/g,'/');}function a146_0x47e2(){const _0x27724f=['240950JdvWpP','18PqhVip','stringify','resolve','object','1010786QYTipu','1712792QZjmTN','288442FiuROL','363668hadbhS','engage_workspace','relative','154984tXRWlR','Invalid\x20JSON\x20in\x20','replace','join','parent_segment','segments','string','1827492lkVUYS','6VvaEvy','dirname','cwd','parse','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.'];a146_0x47e2=function(){return _0x27724f;};return a146_0x47e2();}export function tdFolderPathToLocalPath(_0x1eefdd,_0x5c3af2){const _0x21eef3=a146_0x2eb76a;if(!_0x1eefdd)return _0x5c3af2;return a146_0x396b83[_0x21eef3(0x18c)](_0x5c3af2,_0x1eefdd);}export function createTdxConfigContent(_0x33c0b7){const _0x2cb59d=a146_0x2eb76a,_0x5ef40e={'parent_segment':_0x33c0b7};return JSON[_0x2cb59d(0x199)](_0x5ef40e,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x339838){const _0x2fe580=a146_0x2eb76a,_0x5d232c={'engage_workspace':_0x339838};return JSON[_0x2fe580(0x199)](_0x5d232c,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x2debe2=a147_0xaaf0;(function(_0x2a57d0,_0x52e407){const _0x294fb0=a147_0xaaf0,_0x2c6c92=_0x2a57d0();while(!![]){try{const _0x49529d=-parseInt(_0x294fb0(0x1b1))/0x1+parseInt(_0x294fb0(0x1be))/0x2+parseInt(_0x294fb0(0x1a8))/0x3*(parseInt(_0x294fb0(0x1cb))/0x4)+-parseInt(_0x294fb0(0x1a7))/0x5*(-parseInt(_0x294fb0(0x1c6))/0x6)+parseInt(_0x294fb0(0x1c8))/0x7+parseInt(_0x294fb0(0x1b3))/0x8+-parseInt(_0x294fb0(0x1c5))/0x9;if(_0x49529d===_0x52e407)break;else _0x2c6c92['push'](_0x2c6c92['shift']());}catch(_0x5e061c){_0x2c6c92['push'](_0x2c6c92['shift']());}}}(a147_0x6164,0x2d95a));import{z}from'zod';export const ScheduleTypeSchema=z[a147_0x2debe2(0x1b9)](['none','hourly','daily',a147_0x2debe2(0x1bb),a147_0x2debe2(0x1a9),a147_0x2debe2(0x1ca),a147_0x2debe2(0x1ab)]);export const RepeatUnitSchema=z['enum'](['minute',a147_0x2debe2(0x1c1),a147_0x2debe2(0x1cd),a147_0x2debe2(0x1c3),a147_0x2debe2(0x1b2),a147_0x2debe2(0x1bd),a147_0x2debe2(0x1bc)]);export const ScheduleDefSchema=z[a147_0x2debe2(0x1c7)]({'type':ScheduleTypeSchema[a147_0x2debe2(0x1b4)](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a147_0x2debe2(0x1ba)]()[a147_0x2debe2(0x1b4)](),'repeat_sub_frequency':z['array'](z[a147_0x2debe2(0x1ba)]())['optional'](),'start_at':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1c4)]()[a147_0x2debe2(0x1b4)](),'end_on':z['string']()[a147_0x2debe2(0x1c4)]()['optional'](),'timezone':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1b4)]()});function a147_0xaaf0(_0x4e59c9,_0x5724bf){_0x4e59c9=_0x4e59c9-0x1a7;const _0x6164e4=a147_0x6164();let _0xaaf05e=_0x6164e4[_0x4e59c9];return _0xaaf05e;}export const NotificationDefSchema=z[a147_0x2debe2(0x1c7)]({'notify_on':z[a147_0x2debe2(0x1b7)](z[a147_0x2debe2(0x1b9)]([a147_0x2debe2(0x1ad),'onFailure']))[a147_0x2debe2(0x1b4)](),'email_recipients':z['array'](z[a147_0x2debe2(0x1ae)]())[a147_0x2debe2(0x1b4)]()});function a147_0x6164(){const _0x352d2c=['262036zBwhTZ','union','day','3465sJGzqb','3LhBsSt','monthly','Top-N','minutes_interval','asc','onSuccess','string','min','boolean','23836nuxWxL','month','635048WGvEnE','optional','First','masked','array','clear','enum','number','weekly','none','once','340402GxTHkC','cols','desc','hour','Activation\x20name\x20is\x20required','week','nullable','4298418olYDag','156HEwmTx','object','2485301uliHkL','Last','cron'];a147_0x6164=function(){return _0x352d2c;};return a147_0x6164();}export const ActivationColumnDefSchema=z[a147_0x2debe2(0x1cc)]([z['string'](),z['object']({'name':z['string'](),'type':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1b4)](),'visibility':z[a147_0x2debe2(0x1b9)]([a147_0x2debe2(0x1b8),'masked'])['optional']()})]);export const ActivationBehaviorDefSchema=z[a147_0x2debe2(0x1c7)]({'columns':z[a147_0x2debe2(0x1b7)](z[a147_0x2debe2(0x1c7)]({'name':z[a147_0x2debe2(0x1ae)](),'type':z[a147_0x2debe2(0x1ae)]()['optional'](),'visibility':z[a147_0x2debe2(0x1b9)]([a147_0x2debe2(0x1b8),a147_0x2debe2(0x1b6)])[a147_0x2debe2(0x1b4)]()}))[a147_0x2debe2(0x1b4)](),'behavior_table':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1b4)](),'join_row':z[a147_0x2debe2(0x1ba)]()[a147_0x2debe2(0x1c4)]()[a147_0x2debe2(0x1b4)](),'join_strategy':z[a147_0x2debe2(0x1b9)](['All',a147_0x2debe2(0x1b5),a147_0x2debe2(0x1c9),a147_0x2debe2(0x1aa)])[a147_0x2debe2(0x1b4)](),'formatting':z[a147_0x2debe2(0x1b9)](['rows',a147_0x2debe2(0x1bf)])[a147_0x2debe2(0x1b4)](),'order_by':z['array'](z[a147_0x2debe2(0x1c7)]({'key':z[a147_0x2debe2(0x1ae)](),'order':z['enum']([a147_0x2debe2(0x1ac),a147_0x2debe2(0x1c0)])}))[a147_0x2debe2(0x1b4)]()});export const ActivationDefSchema=z[a147_0x2debe2(0x1c7)]({'name':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1af)](0x1,a147_0x2debe2(0x1c2)),'description':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1b4)](),'connection':z[a147_0x2debe2(0x1ae)]()['min'](0x1,'Connection\x20name\x20is\x20required'),'all_columns':z[a147_0x2debe2(0x1b0)]()[a147_0x2debe2(0x1b4)](),'columns':z[a147_0x2debe2(0x1b7)](ActivationColumnDefSchema)[a147_0x2debe2(0x1b4)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a147_0x2debe2(0x1b4)](),'connector_config':z['record'](z[a147_0x2debe2(0x1ae)](),z['unknown']())[a147_0x2debe2(0x1b4)](),'activation_template_id':z[a147_0x2debe2(0x1ae)]()[a147_0x2debe2(0x1c4)]()['optional'](),'behavior':ActivationBehaviorDefSchema[a147_0x2debe2(0x1c4)]()[a147_0x2debe2(0x1b4)](),'run_after_journey_refresh':z[a147_0x2debe2(0x1b0)]()[a147_0x2debe2(0x1b4)]()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x33b134,_0x147818){var _0xb0bb97=a148_0x67aa,_0x3ae7d2=_0x33b134();while(!![]){try{var _0x422ddc=parseInt(_0xb0bb97(0x8b))/0x1*(-parseInt(_0xb0bb97(0x91))/0x2)+parseInt(_0xb0bb97(0x95))/0x3*(parseInt(_0xb0bb97(0x94))/0x4)+-parseInt(_0xb0bb97(0x90))/0x5*(-parseInt(_0xb0bb97(0x8f))/0x6)+-parseInt(_0xb0bb97(0x96))/0x7+parseInt(_0xb0bb97(0x8e))/0x8+-parseInt(_0xb0bb97(0x92))/0x9*(-parseInt(_0xb0bb97(0x8c))/0xa)+-parseInt(_0xb0bb97(0x93))/0xb*(-parseInt(_0xb0bb97(0x8d))/0xc);if(_0x422ddc===_0x147818)break;else _0x3ae7d2['push'](_0x3ae7d2['shift']());}catch(_0x1ca4b5){_0x3ae7d2['push'](_0x3ae7d2['shift']());}}}(a148_0x4c3f,0x997fb));function a148_0x67aa(_0x56adb5,_0x25eb7f){_0x56adb5=_0x56adb5-0x8b;var _0x4c3faf=a148_0x4c3f();var _0x67aab8=_0x4c3faf[_0x56adb5];return _0x67aab8;}function a148_0x4c3f(){var _0x5ef5da=['44sorWke','27231KmQCXT','7344323cBUare','164777elmGii','75190LEdsau','36yWkIke','8327296Mclryz','50196KczKnn','5sZQBFo','10FzaHTs','1494kMKsPL','383262MHZGxw'];a148_0x4c3f=function(){return _0x5ef5da;};return a148_0x4c3f();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x1fee3b=a149_0x209f;(function(_0x47cc3c,_0x170ad7){const _0x243a45=a149_0x209f,_0x43ab1d=_0x47cc3c();while(!![]){try{const _0x3700bf=parseInt(_0x243a45(0xc6))/0x1*(-parseInt(_0x243a45(0xd9))/0x2)+parseInt(_0x243a45(0xc9))/0x3*(parseInt(_0x243a45(0xc7))/0x4)+parseInt(_0x243a45(0xb7))/0x5+-parseInt(_0x243a45(0xbf))/0x6+parseInt(_0x243a45(0xd7))/0x7+-parseInt(_0x243a45(0xb8))/0x8*(parseInt(_0x243a45(0xc3))/0x9)+parseInt(_0x243a45(0xd4))/0xa;if(_0x3700bf===_0x170ad7)break;else _0x43ab1d['push'](_0x43ab1d['shift']());}catch(_0x4923dc){_0x43ab1d['push'](_0x43ab1d['shift']());}}}(a149_0x35b3,0x89934));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';function a149_0x209f(_0x16f352,_0x10a0b6){_0x16f352=_0x16f352-0xb6;const _0x35b3a6=a149_0x35b3();let _0x209f15=_0x35b3a6[_0x16f352];return _0x209f15;}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum'](['draft',a149_0x1fee3b(0xc2),'launched']);export const ReentryModeTypeSchema=z['enum']([a149_0x1fee3b(0xd5),a149_0x1fee3b(0xcf),a149_0x1fee3b(0xbb)]);export const WaitUnitTypeSchema=z[a149_0x1fee3b(0xbe)]([a149_0x1fee3b(0xd1),a149_0x1fee3b(0xc4)]);export const StepTypeValueSchema=z[a149_0x1fee3b(0xbe)]([a149_0x1fee3b(0xcd),a149_0x1fee3b(0xde),a149_0x1fee3b(0xdb),a149_0x1fee3b(0xbc),'merge',a149_0x1fee3b(0xda),a149_0x1fee3b(0xbd)]);export const EmbeddedSegmentDefSchema=z[a149_0x1fee3b(0xd6)]({'description':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a149_0x1fee3b(0xd6)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z['string']()[a149_0x1fee3b(0xdd)]()});function a149_0x35b3(){const _0x4849f8=['1897995USKCiI','64DeBohN','versions','boolean','reentry_always','ab_test','end','enum','1290030CplfAH','array','lazy','simulation','790218OzrcWa','week','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','1SKVfZf','44mlqcHb','refine','40881AMPHWn','string','number','stages','wait','passthrough','reentry_unless_goal_achieved','isArray','day','filter','record','8553090jiPBpe','no_reentry','object','6242327SsJyIj','type','1591274RJOngk','jump','decision_point','min','optional','activation','length','literal'];a149_0x35b3=function(){return _0x4849f8;};return a149_0x35b3();}export const CriteriaDefSchema=z['object']({'name':z[a149_0x1fee3b(0xca)](),'description':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'segment':z['string'](),'target':JumpTargetDefSchema[a149_0x1fee3b(0xdd)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a149_0x1fee3b(0xcb)](),'unit':WaitUnitTypeSchema,'next':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)]()}),WaitConditionDefSchema=z['object']({'segment':z[a149_0x1fee3b(0xca)](),'next':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'timeout':WaitConditionTimeoutDefSchema[a149_0x1fee3b(0xdd)]()}),WaitStepParamsDefSchema=z[a149_0x1fee3b(0xd6)]({'duration':z[a149_0x1fee3b(0xcb)]()[a149_0x1fee3b(0xdd)](),'unit':WaitUnitTypeSchema[a149_0x1fee3b(0xdd)](),'wait_until':z['string']()['optional'](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z['array'](z[a149_0x1fee3b(0xca)]())[a149_0x1fee3b(0xdd)]()}),StepBaseFields={'name':z[a149_0x1fee3b(0xca)](),'uuid':z[a149_0x1fee3b(0xca)]()['optional'](),'next':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)]()},WaitStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)](a149_0x1fee3b(0xcd)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a149_0x1fee3b(0xd6)]({'activation':z['string']()}),ActivationStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)](a149_0x1fee3b(0xde)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z['string'](),'segment':z[a149_0x1fee3b(0xca)]()['optional'](),'segment_id':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'excluded':z['boolean']()[a149_0x1fee3b(0xdd)](),'next':z['string']()[a149_0x1fee3b(0xdd)]()}),DecisionPointStepParamsDefSchema=z[a149_0x1fee3b(0xd6)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)](a149_0x1fee3b(0xdb)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a149_0x1fee3b(0xd6)]({'id':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'name':z['string'](),'percentage':z[a149_0x1fee3b(0xcb)](),'next':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a149_0x1fee3b(0xc0)](AbTestVariantDefSchema),'unique_id':z['string']()[a149_0x1fee3b(0xdd)](),'customized_split':z[a149_0x1fee3b(0xba)]()[a149_0x1fee3b(0xdd)]()}),AbTestStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)](a149_0x1fee3b(0xbc)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)]('merge')}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)](a149_0x1fee3b(0xda)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a149_0x1fee3b(0xd6)]({...StepBaseFields,'type':z[a149_0x1fee3b(0xb6)](a149_0x1fee3b(0xbd))})[a149_0x1fee3b(0xce)]();export const StepDefSchema=z['discriminatedUnion'](a149_0x1fee3b(0xd8),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a149_0x1fee3b(0xd6)]({'name':z[a149_0x1fee3b(0xca)](),'description':z['string']()[a149_0x1fee3b(0xdd)](),'id':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'entry_criteria':CriteriaDefSchema[a149_0x1fee3b(0xdd)](),'exit_criteria':z['array'](CriteriaDefSchema)[a149_0x1fee3b(0xdd)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'steps':z[a149_0x1fee3b(0xc0)](StepDefSchema)[a149_0x1fee3b(0xdd)]()});export const JourneyEntryDefSchema=z[a149_0x1fee3b(0xd6)]({'name':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'version':z[a149_0x1fee3b(0xca)]()['optional'](),'state':JourneyStateTypeSchema[a149_0x1fee3b(0xdd)](),'latest':z['boolean']()[a149_0x1fee3b(0xdd)](),'stages':z[a149_0x1fee3b(0xc0)](StageDefSchema),'id':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'version_number':z[a149_0x1fee3b(0xcb)]()[a149_0x1fee3b(0xdd)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema[a149_0x1fee3b(0xdd)]()});export const JourneyDefSchema=z[a149_0x1fee3b(0xc1)](()=>z[a149_0x1fee3b(0xd6)]({'type':z[a149_0x1fee3b(0xb6)]('journey'),'name':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdc)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'bundle_id':z[a149_0x1fee3b(0xca)]()['optional'](),'bundle_name':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'folder_id':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'reentry':ReentryModeTypeSchema[a149_0x1fee3b(0xdd)](),'allow_reentry':z['boolean']()[a149_0x1fee3b(0xdd)](),'goal':CriteriaDefSchema[a149_0x1fee3b(0xdd)](),'id':z[a149_0x1fee3b(0xca)]()['optional'](),'version':z[a149_0x1fee3b(0xca)]()[a149_0x1fee3b(0xdd)](),'version_number':z[a149_0x1fee3b(0xcb)]()[a149_0x1fee3b(0xdd)](),'stages':z[a149_0x1fee3b(0xc0)](StageDefSchema)[a149_0x1fee3b(0xdd)](),'versions':z['array'](JourneyEntryDefSchema)[a149_0x1fee3b(0xdd)](),'journeys':z[a149_0x1fee3b(0xc0)](JourneyEntryDefSchema)['optional'](),'segments':z[a149_0x1fee3b(0xd3)](z[a149_0x1fee3b(0xca)](),EmbeddedSegmentDefSchema)[a149_0x1fee3b(0xdd)](),'activations':z[a149_0x1fee3b(0xd3)](z[a149_0x1fee3b(0xca)](),ActivationDefSchema)[a149_0x1fee3b(0xdd)]()})[a149_0x1fee3b(0xc8)](_0x57095d=>{const _0x367e5d=a149_0x1fee3b,_0x37053b=[_0x57095d['journeys'],_0x57095d[_0x367e5d(0xcc)],_0x57095d[_0x367e5d(0xb9)]][_0x367e5d(0xd2)](_0x265102=>Array[_0x367e5d(0xd0)](_0x265102)&&_0x265102[_0x367e5d(0xdf)]>0x0)[_0x367e5d(0xdf)];return _0x37053b===0x1;},{'message':a149_0x1fee3b(0xc5)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25bb2f,_0x11b133){var _0x10db78=a151_0x5cf8,_0x3c49a7=_0x25bb2f();while(!![]){try{var _0x3fee85=parseInt(_0x10db78(0x11a))/0x1*(-parseInt(_0x10db78(0x114))/0x2)+-parseInt(_0x10db78(0x115))/0x3*(parseInt(_0x10db78(0x117))/0x4)+-parseInt(_0x10db78(0x113))/0x5+-parseInt(_0x10db78(0x116))/0x6+parseInt(_0x10db78(0x112))/0x7+-parseInt(_0x10db78(0x119))/0x8+parseInt(_0x10db78(0x118))/0x9;if(_0x3fee85===_0x11b133)break;else _0x3c49a7['push'](_0x3c49a7['shift']());}catch(_0x2a0d8f){_0x3c49a7['push'](_0x3c49a7['shift']());}}}(a151_0x35ed,0x80d4c));function a151_0x35ed(){var _0x3b7f6f=['607586ZWXVol','21423WmftpH','1559232CcQecy','328PXiIeV','20445021XtjTFM','4756600wgbpQo','3Rueuiz','6390650ckbXik','1527695ToIeVT'];a151_0x35ed=function(){return _0x3b7f6f;};return a151_0x35ed();}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a151_0x5cf8(_0x360c46,_0x492e18){_0x360c46=_0x360c46-0x112;var _0x35ed68=a151_0x35ed();var _0x5cf848=_0x35ed68[_0x360c46];return _0x5cf848;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a152_0xf1e1b0=a152_0x35c7;(function(_0x44033c,_0x292059){const _0x357fec=a152_0x35c7,_0x5eb782=_0x44033c();while(!![]){try{const _0x2560cf=parseInt(_0x357fec(0x213))/0x1+-parseInt(_0x357fec(0x229))/0x2*(parseInt(_0x357fec(0x208))/0x3)+-parseInt(_0x357fec(0x218))/0x4*(-parseInt(_0x357fec(0x226))/0x5)+-parseInt(_0x357fec(0x207))/0x6+parseInt(_0x357fec(0x203))/0x7*(parseInt(_0x357fec(0x1f3))/0x8)+parseInt(_0x357fec(0x204))/0x9*(parseInt(_0x357fec(0x21e))/0xa)+parseInt(_0x357fec(0x202))/0xb*(-parseInt(_0x357fec(0x231))/0xc);if(_0x2560cf===_0x292059)break;else _0x5eb782['push'](_0x5eb782['shift']());}catch(_0x3fb05c){_0x5eb782['push'](_0x5eb782['shift']());}}}(a152_0x475c,0xeb82e));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a152_0xf1e1b0(0x1f8),'Greater',a152_0xf1e1b0(0x20c),a152_0xf1e1b0(0x228),a152_0xf1e1b0(0x22b),'In',a152_0xf1e1b0(0x227),a152_0xf1e1b0(0x1ee),a152_0xf1e1b0(0x201),a152_0xf1e1b0(0x20f),a152_0xf1e1b0(0x1eb),a152_0xf1e1b0(0x225),'StartWith',a152_0xf1e1b0(0x235),a152_0xf1e1b0(0x238)]);export const TimeUnitSchema=z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x21a),a152_0xf1e1b0(0x20d),a152_0xf1e1b0(0x236),a152_0xf1e1b0(0x1ec),'week',a152_0xf1e1b0(0x232),a152_0xf1e1b0(0x212)]);export const AggregationTypeSchema=z['enum']([a152_0xf1e1b0(0x217),a152_0xf1e1b0(0x205),a152_0xf1e1b0(0x22f),'Min',a152_0xf1e1b0(0x234),a152_0xf1e1b0(0x1fc),a152_0xf1e1b0(0x221),a152_0xf1e1b0(0x216)]);const TemporalValueSchema=z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x1fd)]({'timestamp':z['string']()}),z[a152_0xf1e1b0(0x1fd)]({'last':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x211)](z['string'](),z[a152_0xf1e1b0(0x20a)]())]),'unit':z[a152_0xf1e1b0(0x22d)]()})]),OperatorValueSchema=z['union']([z['string'](),z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22e)](),TemporalValueSchema,z[a152_0xf1e1b0(0x1fe)](z['union']([z[a152_0xf1e1b0(0x22d)](),z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22e)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0xf1e1b0(0x1f8),'Greater',a152_0xf1e1b0(0x228),'Less',a152_0xf1e1b0(0x22b),'In',a152_0xf1e1b0(0x225),a152_0xf1e1b0(0x22a),a152_0xf1e1b0(0x235),'Regexp',a152_0xf1e1b0(0x20f),a152_0xf1e1b0(0x1eb)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a152_0xf1e1b0(0x1eb)]);export const OperatorDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':OperatorTypeSchema,'not':z['boolean']()[a152_0xf1e1b0(0x1fa)](),'value':OperatorValueSchema[a152_0xf1e1b0(0x1fa)](),'min':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22d)](),TemporalValueSchema])['optional'](),'max':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z['string'](),TemporalValueSchema])[a152_0xf1e1b0(0x1fa)](),'unit':TimeUnitSchema['optional'](),'duration':z[a152_0xf1e1b0(0x1fd)]({'day':z[a152_0xf1e1b0(0x20a)]()['optional'](),'week':z['number']()['optional'](),'month':z['number']()[a152_0xf1e1b0(0x1fa)](),'year':z[a152_0xf1e1b0(0x20a)]()[a152_0xf1e1b0(0x1fa)](),'hour':z['number']()['optional'](),'minute':z['number']()[a152_0xf1e1b0(0x1fa)](),'second':z[a152_0xf1e1b0(0x20a)]()[a152_0xf1e1b0(0x1fa)]()})[a152_0xf1e1b0(0x1fa)](),'from':z['object']({'last':z[a152_0xf1e1b0(0x1e8)]([z[a152_0xf1e1b0(0x20a)](),z[a152_0xf1e1b0(0x22d)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a152_0xf1e1b0(0x22e)]()[a152_0xf1e1b0(0x1fa)]()})[a152_0xf1e1b0(0x21b)]((_0x3ee651,_0x30ffe5)=>{const _0x474ab4=a152_0xf1e1b0;OPERATORS_REQUIRING_VALUE[_0x474ab4(0x1f4)](_0x3ee651[_0x474ab4(0x21f)])&&(_0x3ee651[_0x474ab4(0x1f9)]===undefined||_0x3ee651['value']===null)&&_0x30ffe5[_0x474ab4(0x219)]({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x222)+_0x3ee651['type']+_0x474ab4(0x22c),'path':[_0x474ab4(0x1f9)]}),_0x3ee651[_0x474ab4(0x21f)]===_0x474ab4(0x227)&&_0x3ee651[_0x474ab4(0x1f6)]===undefined&&_0x3ee651[_0x474ab4(0x1ed)]===undefined&&_0x30ffe5[_0x474ab4(0x219)]({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x1f2),'params':{'validationCode':_0x474ab4(0x239)}}),OPERATORS_REQUIRING_UNIT['has'](_0x3ee651[_0x474ab4(0x21f)])&&_0x3ee651['value']!==undefined&&!_0x3ee651[_0x474ab4(0x1f7)]&&_0x30ffe5[_0x474ab4(0x219)]({'code':'custom','message':'Operator\x20\x27'+_0x3ee651[_0x474ab4(0x21f)]+_0x474ab4(0x223),'path':[_0x474ab4(0x1f7)],'params':{'validationCode':_0x474ab4(0x1ff)}}),_0x3ee651['type']===_0x474ab4(0x238)&&(!_0x3ee651[_0x474ab4(0x215)]&&_0x30ffe5[_0x474ab4(0x219)]({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x206),'path':[_0x474ab4(0x215)]}),!_0x3ee651['from']&&_0x30ffe5['addIssue']({'code':_0x474ab4(0x23a),'message':_0x474ab4(0x21d),'path':[_0x474ab4(0x230)]}));});export const ArrayMatchingSchema=z[a152_0xf1e1b0(0x1e8)]([z['literal']('any'),z[a152_0xf1e1b0(0x224)]('all'),z[a152_0xf1e1b0(0x1fd)]({'atLeast':z['number']()}),z[a152_0xf1e1b0(0x1fd)]({'atMost':z['number']()}),z[a152_0xf1e1b0(0x1fd)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a152_0xf1e1b0(0x1f5)]('type',[z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x205),a152_0xf1e1b0(0x200),a152_0xf1e1b0(0x234),'Average']),'column':z['string'](),'groupingColumns':z['array'](z[a152_0xf1e1b0(0x22d)]())['optional']()}),z['object']({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x217)),'groupingColumns':z[a152_0xf1e1b0(0x1fe)](z[a152_0xf1e1b0(0x22d)]())[a152_0xf1e1b0(0x1fa)]()}),z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x1fc)),'columns':z[a152_0xf1e1b0(0x1fe)](z[a152_0xf1e1b0(0x22d)]())}),z['object']({'type':z[a152_0xf1e1b0(0x1ea)](['First','Last']),'column':z[a152_0xf1e1b0(0x22d)](),'orderColumn':z['string'](),'groupingColumns':z[a152_0xf1e1b0(0x1fe)](z['string']())['optional']()})]);export const TimeWindowDefSchema=z['object']({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a152_0xf1e1b0(0x20f),a152_0xf1e1b0(0x1eb),'TimeRange']);export const FilterColumnConditionDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)]('Column'),'column':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0xf1e1b0(0x1fa)]()})[a152_0xf1e1b0(0x21b)]((_0x5b0ce9,_0x54dd21)=>{const _0x3f284b=a152_0xf1e1b0,_0x4b61ce=_0x5b0ce9['operator'][_0x3f284b(0x21f)];_0x5b0ce9[_0x3f284b(0x220)]===_0x3f284b(0x237)?!TIMESTAMP_OPERATORS[_0x3f284b(0x1f4)](_0x4b61ce)&&_0x54dd21['addIssue']({'code':_0x3f284b(0x23a),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x4b61ce+'\x27)','path':[_0x3f284b(0x1f0),'type']}):TIMESTAMP_OPERATORS['has'](_0x4b61ce)&&_0x54dd21['addIssue']({'code':_0x3f284b(0x23a),'message':_0x3f284b(0x222)+_0x4b61ce+_0x3f284b(0x1f1),'path':[_0x3f284b(0x1f0),_0x3f284b(0x21f)]});});export const FilterRuleDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x1ef)),'conditions':z[a152_0xf1e1b0(0x1fe)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z['object']({'type':z['literal']('Value'),'attribute':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0xf1e1b0(0x1fa)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)](),'filter':FilterRuleDefSchema[a152_0xf1e1b0(0x1fa)](),'limit':z[a152_0xf1e1b0(0x20a)]()['optional']()}));export const BehaviorConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z['object']({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x20e)),'attribute':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0xf1e1b0(0x1fa)](),'exclude':z[a152_0xf1e1b0(0x22e)]()[a152_0xf1e1b0(0x1fa)](),'aggregation':AggregationDefSchema[a152_0xf1e1b0(0x1fa)](),'source':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)](),'filter':FilterRuleDefSchema[a152_0xf1e1b0(0x1fa)](),'timeWindow':TimeWindowDefSchema[a152_0xf1e1b0(0x1fa)](),'limit':z[a152_0xf1e1b0(0x20a)]()[a152_0xf1e1b0(0x1fa)]()}));function a152_0x35c7(_0x2403fc,_0x5b3808){_0x2403fc=_0x2403fc-0x1e8;const _0x475c0=a152_0x475c();let _0x35c7ad=_0x475c0[_0x2403fc];return _0x35c7ad;}export const ColumnConditionDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x23b)),'column':z[a152_0xf1e1b0(0x22d)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x1ef),'Or']),'conditions':z[a152_0xf1e1b0(0x1fe)](ConditionDefSchema),'description':z['string']()[a152_0xf1e1b0(0x1fa)]()}));export const SegmentRefConditionDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x210),'exclude']),'segment':z[a152_0xf1e1b0(0x22d)]()['min'](0x1,a152_0xf1e1b0(0x20b))});export const ConditionDefSchema=z[a152_0xf1e1b0(0x21c)](()=>z[a152_0xf1e1b0(0x1e8)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x1ef),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)]()}));function a152_0x475c(){const _0x177c7d=['Count','20xwQMWL','addIssue','second','superRefine','lazy','TimeRange\x20operator\x20requires\x20\x27from\x27','19176030ybEENa','type','column','First','Operator\x20\x27','\x27\x20requires\x20a\x20time\x20unit','literal','Contain','122890qkMYZV','Between','GreaterEqual','24yChsvY','StartWith','LessEqual','\x27\x20requires\x20a\x20value','string','boolean','Average','from','204JdbbhG','month','funnel_stage','Max','EndWith','hour','timestamp','TimeRange','MISSING_BETWEEN_BOUNDS','custom','Column','Segment\x20name\x20is\x20required','union','realtime','enum','TimeWithinNext','day','max','Regexp','And','operator','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','656HPtHPz','has','discriminatedUnion','min','unit','Equal','value','optional','segment','CountDistinct','object','array','MISSING_TIME_UNIT','Min','IsNull','595342aFZHic','7329gErXVz','9ZjwttE','Sum','TimeRange\x20operator\x20requires\x20\x27duration\x27','7845900msVjke','135021CbmUbI','batch','number','Segment\x20reference\x20must\x20not\x20be\x20empty','Less','minute','Behavior','TimeWithinPast','include','record','year','1606115ivjmFg','any','duration','Last'];a152_0x475c=function(){return _0x177c7d;};return a152_0x475c();}export const SegmentDefSchema=z[a152_0xf1e1b0(0x1fd)]({'type':z[a152_0xf1e1b0(0x224)](a152_0xf1e1b0(0x1fb))[a152_0xf1e1b0(0x1fa)](),'name':z[a152_0xf1e1b0(0x22d)]()['min'](0x1,a152_0xf1e1b0(0x23c)),'description':z['string']()[a152_0xf1e1b0(0x1fa)](),'folder':z[a152_0xf1e1b0(0x22d)]()[a152_0xf1e1b0(0x1fa)](),'rule':RuleDefSchema[a152_0xf1e1b0(0x1fa)](),'kind':z[a152_0xf1e1b0(0x1ea)]([a152_0xf1e1b0(0x209),a152_0xf1e1b0(0x1e9),a152_0xf1e1b0(0x233)])['optional'](),'visible':z[a152_0xf1e1b0(0x22e)]()[a152_0xf1e1b0(0x1fa)](),'activations':z[a152_0xf1e1b0(0x1fe)](z[a152_0xf1e1b0(0x214)]())[a152_0xf1e1b0(0x1fa)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a152_0x470c2c=a152_0x1511;(function(_0x1b7408,_0x4a73bd){const _0x2bb764=a152_0x1511,_0x267518=_0x1b7408();while(!![]){try{const _0x354783=parseInt(_0x2bb764(0x215))/0x1+parseInt(_0x2bb764(0x225))/0x2+-parseInt(_0x2bb764(0x1e5))/0x3*(-parseInt(_0x2bb764(0x1e2))/0x4)+parseInt(_0x2bb764(0x22e))/0x5*(-parseInt(_0x2bb764(0x21f))/0x6)+parseInt(_0x2bb764(0x208))/0x7+-parseInt(_0x2bb764(0x230))/0x8+parseInt(_0x2bb764(0x1ee))/0x9*(-parseInt(_0x2bb764(0x1f5))/0xa);if(_0x354783===_0x4a73bd)break;else _0x267518['push'](_0x267518['shift']());}catch(_0x14b77e){_0x267518['push'](_0x267518['shift']());}}}(a152_0x12ca,0xe89a0));import{z}from'zod';export const OperatorTypeSchema=z[a152_0x470c2c(0x21e)]([a152_0x470c2c(0x1e6),a152_0x470c2c(0x1f1),a152_0x470c2c(0x218),a152_0x470c2c(0x205),a152_0x470c2c(0x211),'In','Between',a152_0x470c2c(0x219),a152_0x470c2c(0x1fe),a152_0x470c2c(0x20a),a152_0x470c2c(0x221),'Contain','StartWith',a152_0x470c2c(0x1e4),a152_0x470c2c(0x209)]);export const TimeUnitSchema=z['enum']([a152_0x470c2c(0x1f3),a152_0x470c2c(0x22a),a152_0x470c2c(0x231),a152_0x470c2c(0x1ec),a152_0x470c2c(0x1ed),a152_0x470c2c(0x1fc),a152_0x470c2c(0x1f2)]);export const AggregationTypeSchema=z[a152_0x470c2c(0x21e)]([a152_0x470c2c(0x1f4),a152_0x470c2c(0x207),a152_0x470c2c(0x20e),'Min',a152_0x470c2c(0x201),a152_0x470c2c(0x202),a152_0x470c2c(0x227),a152_0x470c2c(0x21b)]);const TemporalValueSchema=z[a152_0x470c2c(0x228)]([z[a152_0x470c2c(0x223)]({'timestamp':z['string']()}),z[a152_0x470c2c(0x223)]({'last':z[a152_0x470c2c(0x228)]([z['number'](),z[a152_0x470c2c(0x213)](z['string'](),z[a152_0x470c2c(0x20b)]())]),'unit':z[a152_0x470c2c(0x20c)]()})]),OperatorValueSchema=z['union']([z[a152_0x470c2c(0x20c)](),z[a152_0x470c2c(0x20b)](),z[a152_0x470c2c(0x1f6)](),TemporalValueSchema,z[a152_0x470c2c(0x206)](z[a152_0x470c2c(0x228)]([z['string'](),z[a152_0x470c2c(0x20b)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0x470c2c(0x1e6),a152_0x470c2c(0x1f1),a152_0x470c2c(0x205),a152_0x470c2c(0x218),a152_0x470c2c(0x211),'In',a152_0x470c2c(0x21a),a152_0x470c2c(0x1f8),a152_0x470c2c(0x1e4),'Regexp',a152_0x470c2c(0x20a),a152_0x470c2c(0x221)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a152_0x470c2c(0x221)]);export const OperatorDefSchema=z[a152_0x470c2c(0x223)]({'type':OperatorTypeSchema,'not':z[a152_0x470c2c(0x1f6)]()[a152_0x470c2c(0x1e8)](),'value':OperatorValueSchema['optional'](),'min':z['union']([z[a152_0x470c2c(0x20b)](),z[a152_0x470c2c(0x20c)](),TemporalValueSchema])[a152_0x470c2c(0x1e8)](),'max':z[a152_0x470c2c(0x228)]([z['number'](),z[a152_0x470c2c(0x20c)](),TemporalValueSchema])[a152_0x470c2c(0x1e8)](),'unit':TimeUnitSchema[a152_0x470c2c(0x1e8)](),'duration':z[a152_0x470c2c(0x223)]({'day':z[a152_0x470c2c(0x20b)]()[a152_0x470c2c(0x1e8)](),'week':z['number']()[a152_0x470c2c(0x1e8)](),'month':z[a152_0x470c2c(0x20b)]()[a152_0x470c2c(0x1e8)](),'year':z['number']()[a152_0x470c2c(0x1e8)](),'hour':z[a152_0x470c2c(0x20b)]()['optional'](),'minute':z[a152_0x470c2c(0x20b)]()[a152_0x470c2c(0x1e8)](),'second':z[a152_0x470c2c(0x20b)]()[a152_0x470c2c(0x1e8)]()})['optional'](),'from':z[a152_0x470c2c(0x223)]({'last':z['union']([z[a152_0x470c2c(0x20b)](),z[a152_0x470c2c(0x20c)]()]),'unit':TimeUnitSchema})[a152_0x470c2c(0x1e8)](),'reverse':z['boolean']()[a152_0x470c2c(0x1e8)]()})[a152_0x470c2c(0x1e3)]((_0x45c473,_0x1d41ea)=>{const _0x4d6b8c=a152_0x470c2c;OPERATORS_REQUIRING_VALUE[_0x4d6b8c(0x21d)](_0x45c473[_0x4d6b8c(0x1e0)])&&(_0x45c473[_0x4d6b8c(0x210)]===undefined||_0x45c473[_0x4d6b8c(0x210)]===null)&&_0x1d41ea['addIssue']({'code':'custom','message':'Operator\x20\x27'+_0x45c473[_0x4d6b8c(0x1e0)]+_0x4d6b8c(0x1f7),'path':[_0x4d6b8c(0x210)]}),_0x45c473[_0x4d6b8c(0x1e0)]===_0x4d6b8c(0x224)&&_0x45c473[_0x4d6b8c(0x20d)]===undefined&&_0x45c473['max']===undefined&&_0x1d41ea['addIssue']({'code':_0x4d6b8c(0x1eb),'message':_0x4d6b8c(0x22c),'params':{'validationCode':_0x4d6b8c(0x22d)}}),OPERATORS_REQUIRING_UNIT[_0x4d6b8c(0x21d)](_0x45c473['type'])&&_0x45c473[_0x4d6b8c(0x210)]!==undefined&&!_0x45c473[_0x4d6b8c(0x229)]&&_0x1d41ea[_0x4d6b8c(0x216)]({'code':_0x4d6b8c(0x1eb),'message':_0x4d6b8c(0x20f)+_0x45c473[_0x4d6b8c(0x1e0)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x4d6b8c(0x229)],'params':{'validationCode':_0x4d6b8c(0x1ea)}}),_0x45c473[_0x4d6b8c(0x1e0)]===_0x4d6b8c(0x209)&&(!_0x45c473['duration']&&_0x1d41ea[_0x4d6b8c(0x216)]({'code':_0x4d6b8c(0x1eb),'message':_0x4d6b8c(0x217),'path':[_0x4d6b8c(0x226)]}),!_0x45c473[_0x4d6b8c(0x214)]&&_0x1d41ea[_0x4d6b8c(0x216)]({'code':_0x4d6b8c(0x1eb),'message':_0x4d6b8c(0x200),'path':['from']}));});function a152_0x1511(_0x464b54,_0x4e6144){_0x464b54=_0x464b54-0x1e0;const _0x12caa5=a152_0x12ca();let _0x1511f2=_0x12caa5[_0x464b54];return _0x1511f2;}export const ArrayMatchingSchema=z[a152_0x470c2c(0x228)]([z[a152_0x470c2c(0x22f)](a152_0x470c2c(0x203)),z['literal'](a152_0x470c2c(0x1fb)),z[a152_0x470c2c(0x223)]({'atLeast':z[a152_0x470c2c(0x20b)]()}),z[a152_0x470c2c(0x223)]({'atMost':z[a152_0x470c2c(0x20b)]()}),z[a152_0x470c2c(0x223)]({'exactly':z[a152_0x470c2c(0x20b)]()})]);export const AggregationDefSchema=z[a152_0x470c2c(0x22b)](a152_0x470c2c(0x1e0),[z[a152_0x470c2c(0x223)]({'type':z[a152_0x470c2c(0x21e)]([a152_0x470c2c(0x207),a152_0x470c2c(0x1fd),'Max',a152_0x470c2c(0x20e)]),'column':z['string'](),'groupingColumns':z[a152_0x470c2c(0x206)](z['string']())[a152_0x470c2c(0x1e8)]()}),z[a152_0x470c2c(0x223)]({'type':z['literal'](a152_0x470c2c(0x1f4)),'groupingColumns':z[a152_0x470c2c(0x206)](z[a152_0x470c2c(0x20c)]())[a152_0x470c2c(0x1e8)]()}),z[a152_0x470c2c(0x223)]({'type':z['literal'](a152_0x470c2c(0x202)),'columns':z['array'](z['string']())}),z[a152_0x470c2c(0x223)]({'type':z[a152_0x470c2c(0x21e)]([a152_0x470c2c(0x227),a152_0x470c2c(0x21b)]),'column':z[a152_0x470c2c(0x20c)](),'orderColumn':z['string'](),'groupingColumns':z[a152_0x470c2c(0x206)](z[a152_0x470c2c(0x20c)]())[a152_0x470c2c(0x1e8)]()})]);function a152_0x12ca(){const _0x1c3d90=['2708624rzVvhU','duration','First','union','unit','minute','discriminatedUnion','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','MISSING_BETWEEN_BOUNDS','10nGjbQW','literal','9225088WiEWdY','hour','type','lazy','4sDhjHG','superRefine','EndWith','1411734yVurcl','Equal','And','optional','realtime','MISSING_TIME_UNIT','custom','day','week','1545669uNtzdY','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','timestamp','Greater','year','second','Count','30fmBGqw','boolean','\x27\x20requires\x20a\x20value','StartWith','column','funnel_stage','all','month','Min','IsNull','Value','TimeRange\x20operator\x20requires\x20\x27from\x27','Max','CountDistinct','any','Segment\x20name\x20is\x20required','GreaterEqual','array','Sum','4566289lNobYe','TimeRange','TimeWithinPast','number','string','min','Average','Operator\x20\x27','value','LessEqual','exclude','record','from','373908vinslG','addIssue','TimeRange\x20operator\x20requires\x20\x27duration\x27','Less','Regexp','Contain','Last','segment','has','enum','690090dKmiWu','operator','TimeWithinNext','Behavior','object','Between'];a152_0x12ca=function(){return _0x1c3d90;};return a152_0x12ca();}export const TimeWindowDefSchema=z[a152_0x470c2c(0x223)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a152_0x470c2c(0x20a),'TimeWithinNext',a152_0x470c2c(0x209)]);export const FilterColumnConditionDefSchema=z['object']({'type':z[a152_0x470c2c(0x22f)]('Column'),'column':z[a152_0x470c2c(0x20c)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x470c2c(0x1e8)]()})[a152_0x470c2c(0x1e3)]((_0x22dadc,_0x4a216c)=>{const _0x218ecd=a152_0x470c2c,_0x4a2d08=_0x22dadc[_0x218ecd(0x220)][_0x218ecd(0x1e0)];_0x22dadc[_0x218ecd(0x1f9)]===_0x218ecd(0x1f0)?!TIMESTAMP_OPERATORS[_0x218ecd(0x21d)](_0x4a2d08)&&_0x4a216c['addIssue']({'code':_0x218ecd(0x1eb),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x4a2d08+'\x27)','path':['operator',_0x218ecd(0x1e0)]}):TIMESTAMP_OPERATORS[_0x218ecd(0x21d)](_0x4a2d08)&&_0x4a216c['addIssue']({'code':'custom','message':_0x218ecd(0x20f)+_0x4a2d08+_0x218ecd(0x1ef),'path':[_0x218ecd(0x220),'type']});});export const FilterRuleDefSchema=z['object']({'type':z[a152_0x470c2c(0x22f)](a152_0x470c2c(0x1e7)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z['lazy'](()=>z[a152_0x470c2c(0x223)]({'type':z[a152_0x470c2c(0x22f)](a152_0x470c2c(0x1ff)),'attribute':z[a152_0x470c2c(0x20c)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x470c2c(0x1e8)](),'exclude':z[a152_0x470c2c(0x1f6)]()[a152_0x470c2c(0x1e8)](),'aggregation':AggregationDefSchema[a152_0x470c2c(0x1e8)](),'source':z[a152_0x470c2c(0x20c)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a152_0x470c2c(0x20b)]()[a152_0x470c2c(0x1e8)]()}));export const BehaviorConditionDefSchema=z[a152_0x470c2c(0x1e1)](()=>z['object']({'type':z['literal'](a152_0x470c2c(0x222)),'attribute':z[a152_0x470c2c(0x20c)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a152_0x470c2c(0x1f6)]()[a152_0x470c2c(0x1e8)](),'aggregation':AggregationDefSchema[a152_0x470c2c(0x1e8)](),'source':z[a152_0x470c2c(0x20c)]()[a152_0x470c2c(0x1e8)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a152_0x470c2c(0x1e8)](),'limit':z[a152_0x470c2c(0x20b)]()[a152_0x470c2c(0x1e8)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a152_0x470c2c(0x22f)]('Column'),'column':z[a152_0x470c2c(0x20c)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a152_0x470c2c(0x1e1)](()=>z['object']({'type':z[a152_0x470c2c(0x21e)]([a152_0x470c2c(0x1e7),'Or']),'conditions':z[a152_0x470c2c(0x206)](ConditionDefSchema),'description':z[a152_0x470c2c(0x20c)]()[a152_0x470c2c(0x1e8)]()}));export const SegmentRefConditionDefSchema=z[a152_0x470c2c(0x223)]({'type':z[a152_0x470c2c(0x21e)](['include',a152_0x470c2c(0x212)]),'segment':z['string']()['min'](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z['lazy'](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a152_0x470c2c(0x1e1)](()=>z[a152_0x470c2c(0x223)]({'type':z[a152_0x470c2c(0x21e)]([a152_0x470c2c(0x1e7),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z['string']()[a152_0x470c2c(0x1e8)]()}));export const SegmentDefSchema=z[a152_0x470c2c(0x223)]({'type':z[a152_0x470c2c(0x22f)](a152_0x470c2c(0x21c))[a152_0x470c2c(0x1e8)](),'name':z[a152_0x470c2c(0x20c)]()[a152_0x470c2c(0x20d)](0x1,a152_0x470c2c(0x204)),'description':z[a152_0x470c2c(0x20c)]()[a152_0x470c2c(0x1e8)](),'folder':z[a152_0x470c2c(0x20c)]()[a152_0x470c2c(0x1e8)](),'rule':RuleDefSchema[a152_0x470c2c(0x1e8)](),'kind':z['enum'](['batch',a152_0x470c2c(0x1e9),a152_0x470c2c(0x1fa)])[a152_0x470c2c(0x1e8)](),'visible':z[a152_0x470c2c(0x1f6)]()[a152_0x470c2c(0x1e8)](),'activations':z[a152_0x470c2c(0x206)](z['any']())[a152_0x470c2c(0x1e8)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x28eece=a153_0x2579;(function(_0x59b178,_0xb90682){const _0x6aabc2=a153_0x2579,_0x13b4c1=_0x59b178();while(!![]){try{const _0x3c2151=parseInt(_0x6aabc2(0xc1))/0x1+parseInt(_0x6aabc2(0xbc))/0x2+parseInt(_0x6aabc2(0xb2))/0x3+parseInt(_0x6aabc2(0xbd))/0x4*(parseInt(_0x6aabc2(0xb1))/0x5)+-parseInt(_0x6aabc2(0xaf))/0x6+-parseInt(_0x6aabc2(0xca))/0x7+-parseInt(_0x6aabc2(0xcc))/0x8*(parseInt(_0x6aabc2(0xb5))/0x9);if(_0x3c2151===_0xb90682)break;else _0x13b4c1['push'](_0x13b4c1['shift']());}catch(_0x56393b){_0x13b4c1['push'](_0x13b4c1['shift']());}}}(a153_0x10f0,0xb41bb));import{readFileSync}from'fs';import*as a153_0x1e2a2d from'path';import*as a153_0x5b8ed5 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set(['email',a153_0x28eece(0xc7)]);export function isJourneyDef(_0x4171c0){const _0x2d8b9f=a153_0x28eece;return typeof _0x4171c0===_0x2d8b9f(0xcb)&&_0x4171c0!==null&&_0x2d8b9f(0xad)in _0x4171c0&&_0x4171c0[_0x2d8b9f(0xad)]==='journey';}export function isCampaignDef(_0x46b6cc){const _0x49d01d=a153_0x28eece;if(typeof _0x46b6cc!=='object'||_0x46b6cc===null)return![];const _0x251361=_0x46b6cc,_0x5868a2=VALID_CAMPAIGN_TYPES[_0x49d01d(0xb9)](_0x251361[_0x49d01d(0xc9)]);if(_0x251361[_0x49d01d(0xad)]==='campaign'&&_0x5868a2)return!![];if(_0x5868a2&&!_0x251361[_0x49d01d(0xad)])return!![];return![];}export function isTemplateDef(_0x48eaee){const _0x2d49ab=a153_0x28eece;return typeof _0x48eaee==='object'&&_0x48eaee!==null&&_0x2d49ab(0xad)in _0x48eaee&&_0x48eaee[_0x2d49ab(0xad)]===_0x2d49ab(0xb8);}export function isValidationResult(_0x34ae89){return!('skipped'in _0x34ae89);}function a153_0x2579(_0x3dba19,_0xb76630){_0x3dba19=_0x3dba19-0xac;const _0x10f0f3=a153_0x10f0();let _0x2579a7=_0x10f0f3[_0x3dba19];return _0x2579a7;}export function createParseErrorResult(_0x3f1a6f,_0x467ee8,_0x30884d,_0x56d8dc,_0x289ea8='segment'){const _0x204bbb=a153_0x28eece;return{'filePath':_0x3f1a6f,'relativePath':_0x467ee8,'source':_0x30884d,'result':{'valid':![],'errors':[{'level':_0x204bbb(0xb6),'path':'','code':_0x204bbb(0xbf),'message':_0x56d8dc}],'warnings':[]},'fileType':_0x289ea8};}export function validateYamlFile(_0x3be3c0,_0x43f264,_0x5102a6={}){const _0xdf2023=a153_0x28eece,_0x442f39=a153_0x1e2a2d[_0xdf2023(0xb4)](_0x43f264,_0x3be3c0)||a153_0x1e2a2d[_0xdf2023(0xc0)](_0x3be3c0);try{const _0x125f21=readFileSync(_0x3be3c0,_0xdf2023(0xc6)),_0x43e8d1=a153_0x5b8ed5[_0xdf2023(0xae)](_0x125f21),_0x24a9fd=_0x43e8d1[_0xdf2023(0xb0)]();if(!_0x24a9fd)return createParseErrorResult(_0x3be3c0,_0x442f39,_0x125f21,_0xdf2023(0xbe));let _0x1bd75c;if(isJourneyDef(_0x24a9fd))_0x1bd75c=_0xdf2023(0xb7);else{if(isCampaignDef(_0x24a9fd))_0x1bd75c=_0xdf2023(0xb3);else isTemplateDef(_0x24a9fd)?_0x1bd75c=_0xdf2023(0xb8):_0x1bd75c=_0xdf2023(0xc2);}if(_0x5102a6[_0xdf2023(0xc4)]&&_0x1bd75c!==_0x5102a6['filterType'])return{'filePath':_0x3be3c0,'relativePath':_0x442f39,'skipped':!![],'reason':'not\x20a\x20'+_0x5102a6[_0xdf2023(0xc4)]};const _0x37ae71={'source':_0x125f21,'document':_0x43e8d1};let _0x2a7111;if(_0x1bd75c===_0xdf2023(0xb7))_0x2a7111=validateJourneyDef(_0x24a9fd,_0x37ae71);else{if(_0x1bd75c===_0xdf2023(0xb3))_0x2a7111=validateCampaignDef(_0x24a9fd,_0x37ae71);else _0x1bd75c===_0xdf2023(0xb8)?_0x2a7111=validateTemplateDef(_0x24a9fd,_0x37ae71):_0x2a7111=validateSegmentDef(_0x24a9fd,_0x37ae71);}return{'filePath':_0x3be3c0,'relativePath':_0x442f39,'source':_0x125f21,'result':_0x2a7111,'fileType':_0x1bd75c};}catch(_0x93bd14){const _0x2626d5=_0x93bd14 instanceof Error?_0x93bd14['message']:String(_0x93bd14);return createParseErrorResult(_0x3be3c0,_0x442f39,'',_0xdf2023(0xac)+_0x2626d5);}}export function validateYamlFiles(_0x22a575,_0x436258,_0x491bbd={}){const _0x2f8b5b=a153_0x28eece;return _0x22a575[_0x2f8b5b(0xc8)](_0x5ae87e=>validateYamlFile(_0x5ae87e,_0x436258,_0x491bbd));}function a153_0x10f0(){const _0x292ef3=['YAML_PARSE_ERROR','basename','915078SgHzoa','segment','valid','filterType','warnings','utf-8','push','map','campaign_type','9556701BzzOmg','object','16FwEQPO','YAML\x20parse\x20error:\x20','type','parseDocument','4958784JAAVak','toJSON','10edzyjP','1580010ysJDfp','campaign','relative','3135996VbWKCz','error','journey','template','has','result','length','1816952hYFTXY','2552188ctIDSK','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)'];a153_0x10f0=function(){return _0x292ef3;};return a153_0x10f0();}export function calculateSummary(_0x4a5338){const _0x241218=a153_0x28eece;let _0x141a39=0x0,_0x41c5ad=0x0,_0x1aa7e0=0x0,_0xc0b454=0x0;for(const _0x34e521 of _0x4a5338){if(!isValidationResult(_0x34e521)){_0xc0b454++;continue;}_0x34e521['result'][_0x241218(0xc3)]?_0x141a39++:_0x41c5ad++,_0x1aa7e0+=_0x34e521[_0x241218(0xba)][_0x241218(0xc5)][_0x241218(0xbb)];}return{'validCount':_0x141a39,'invalidCount':_0x41c5ad,'warningCount':_0x1aa7e0,'skippedCount':_0xc0b454,'hasErrors':_0x41c5ad>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2221e0,_0x2c8769){const _0x1224c9=a154_0x5a0c,_0x173eaf=_0x2221e0();while(!![]){try{const _0x289710=-parseInt(_0x1224c9(0xac))/0x1+-parseInt(_0x1224c9(0xae))/0x2*(-parseInt(_0x1224c9(0xb8))/0x3)+parseInt(_0x1224c9(0x9c))/0x4+-parseInt(_0x1224c9(0x9e))/0x5+parseInt(_0x1224c9(0x95))/0x6+parseInt(_0x1224c9(0x9f))/0x7+parseInt(_0x1224c9(0x9a))/0x8*(-parseInt(_0x1224c9(0x94))/0x9);if(_0x289710===_0x2c8769)break;else _0x173eaf['push'](_0x173eaf['shift']());}catch(_0x3b5437){_0x173eaf['push'](_0x173eaf['shift']());}}}(a154_0x5bc8,0x6d9d1));import*as a154_0x43fa6d from'yaml';import a154_0x16d6ed from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a154_0x5a0c(_0x102c9b,_0x4d8cd1){_0x102c9b=_0x102c9b-0x93;const _0x5bc866=a154_0x5bc8();let _0x5a0c30=_0x5bc866[_0x102c9b];return _0x5a0c30;}export function getLocationFromPath(_0x5ad102,_0x2dbf0c,_0x502ba1){const _0x32f565=a154_0x5a0c;if(!_0x5ad102||!_0x2dbf0c)return undefined;try{let _0x4b4a2d=_0x5ad102['getIn'](_0x502ba1,!![]),_0x564c01=[..._0x502ba1];while((!_0x4b4a2d||typeof _0x4b4a2d!==_0x32f565(0xa3)||!(_0x32f565(0xa4)in _0x4b4a2d)||!_0x4b4a2d[_0x32f565(0xa4)])&&_0x564c01['length']>0x0){_0x564c01[_0x32f565(0xad)](),_0x4b4a2d=_0x564c01['length']>0x0?_0x5ad102[_0x32f565(0xa7)](_0x564c01,!![]):_0x5ad102[_0x32f565(0xb3)];}if(!_0x4b4a2d||typeof _0x4b4a2d!==_0x32f565(0xa3)||!(_0x32f565(0xa4)in _0x4b4a2d)||!_0x4b4a2d['range'])return undefined;const [_0x5bc614]=_0x4b4a2d['range'];return offsetToLocation(_0x2dbf0c,_0x5bc614);}catch{return undefined;}}export function offsetToLocation(_0x424e6b,_0x38d739){const _0x2387c4=a154_0x5a0c;let _0x49a4f4=0x1,_0x5234c9=0x1;for(let _0x48638c=0x0;_0x48638c<_0x38d739&&_0x48638c<_0x424e6b[_0x2387c4(0xaf)];_0x48638c++){_0x424e6b[_0x48638c]==='\x0a'?(_0x49a4f4++,_0x5234c9=0x1):_0x5234c9++;}return{'line':_0x49a4f4,'column':_0x5234c9,'offset':_0x38d739};}export function pathToArray(_0x517152){const _0x13ea7a=a154_0x5a0c;if(!_0x517152)return[];return _0x517152[_0x13ea7a(0xbc)]('.')[_0x13ea7a(0xb7)](_0x123043=>{const _0xcdf571=_0x13ea7a,_0x5611b5=_0x123043[_0xcdf571(0x93)](/^(\w+)\[(\d+)\]$/);if(_0x5611b5)return[_0x5611b5[0x1],parseInt(_0x5611b5[0x2],0xa)];return[_0x123043];});}export function formatZodPath(_0x274983){let _0x15b4f4='';for(const _0x25b026 of _0x274983){if(typeof _0x25b026==='number')_0x15b4f4+='['+_0x25b026+']';else{const _0x1061a2=String(_0x25b026);_0x15b4f4+=_0x15b4f4?'.'+_0x1061a2:_0x1061a2;}}return _0x15b4f4;}export function flattenZodIssues(_0x2808c1){const _0x250f9c=a154_0x5a0c,_0x88d153=[];for(const _0x4f11d9 of _0x2808c1){if(_0x4f11d9['code']==='invalid_union'&&_0x250f9c(0xa6)in _0x4f11d9){const _0x2ee304=_0x4f11d9[_0x250f9c(0xa6)];let _0xe9e5cb=_0x2ee304[0x0]||[];for(const _0x18da25 of _0x2ee304){_0x18da25['length']<_0xe9e5cb[_0x250f9c(0xaf)]&&(_0xe9e5cb=_0x18da25);}const _0x45eead=_0xe9e5cb[_0x250f9c(0xb9)](_0x4f695d=>({..._0x4f695d,'path':[..._0x4f11d9[_0x250f9c(0xa1)],..._0x4f695d[_0x250f9c(0xa1)]]}));_0x88d153[_0x250f9c(0x98)](...flattenZodIssues(_0x45eead));}else _0x88d153[_0x250f9c(0x98)](_0x4f11d9);}return _0x88d153;}function a154_0x5bc8(){const _0x125e45=['pop','184ewlugv','length','warnings','min','padStart','contents','error','message','join','flatMap','9123uJnZjF','map','\x27:\x20','parse','split','yellow','match','6354yZEoyz','992166Nyhrqx','cyan','red','push','location','1784UwaeRE','Invalid\x20YAML:\x20expected\x20an\x20object','129784fGRyPL','YAML\x20validation\x20error:\x20','1841335DBnXQh','4375371HJgAde','safeParse','path','toString','object','range','max','errors','getIn','dim','code','line','level','127950zMlBRZ'];a154_0x5bc8=function(){return _0x125e45;};return a154_0x5bc8();}export function safeParseYaml(_0x134032,_0x18c031){const _0xafb38=a154_0x5a0c,_0x13ea94=a154_0x43fa6d[_0xafb38(0xbb)](_0x134032);if(!_0x13ea94||typeof _0x13ea94!==_0xafb38(0xa3))throw new Error(_0xafb38(0x9b));const _0x5c9158=_0x18c031[_0xafb38(0xa0)](_0x13ea94);if(!_0x5c9158['success']){const _0x25d4ac=_0x5c9158[_0xafb38(0xb4)]['issues'][0x0],_0xdb0c23=formatZodPath(_0x25d4ac[_0xafb38(0xa1)]);throw new Error(_0xdb0c23?'YAML\x20validation\x20error\x20at\x20\x27'+_0xdb0c23+_0xafb38(0xba)+_0x25d4ac[_0xafb38(0xb5)]:_0xafb38(0x9d)+_0x25d4ac[_0xafb38(0xb5)]);}return _0x5c9158['data'];}export function formatIssueWithContext(_0x55c4ec,_0x25eb0e,_0x1cc3b0){const _0x5948ed=a154_0x5a0c,_0x596d79=[],_0x59f2a6=_0x55c4ec[_0x5948ed(0xab)]===_0x5948ed(0xb4),_0x5a1922=_0x59f2a6?a154_0x16d6ed[_0x5948ed(0x97)]:a154_0x16d6ed[_0x5948ed(0xbd)],_0x1be9b2=_0x59f2a6?a154_0x16d6ed[_0x5948ed(0x97)]:a154_0x16d6ed[_0x5948ed(0xbd)],_0x3fba5a=_0x1cc3b0?a154_0x16d6ed[_0x5948ed(0x96)](_0x1cc3b0+':'):'';if(_0x55c4ec[_0x5948ed(0x99)]){const _0x1d0593=a154_0x16d6ed[_0x5948ed(0x96)](_0x55c4ec[_0x5948ed(0x99)][_0x5948ed(0xaa)]+':'+_0x55c4ec['location']['column']);_0x596d79[_0x5948ed(0x98)](''+_0x3fba5a+_0x1d0593+':\x20'+_0x5a1922(_0x55c4ec[_0x5948ed(0xab)])+'\x20'+_0x1be9b2('['+_0x55c4ec[_0x5948ed(0xa9)]+']'));}else _0x596d79[_0x5948ed(0x98)](''+_0x3fba5a+a154_0x16d6ed[_0x5948ed(0xa8)](_0x55c4ec[_0x5948ed(0xa1)])+':\x20'+_0x5a1922(_0x55c4ec[_0x5948ed(0xab)])+'\x20'+_0x1be9b2('['+_0x55c4ec[_0x5948ed(0xa9)]+']'));_0x596d79['push'](_0x55c4ec[_0x5948ed(0xb5)]);if(_0x55c4ec['location']&&_0x25eb0e){const _0x16e9c3=_0x25eb0e[_0x5948ed(0xbc)]('\x0a'),{line:_0x9ece3b,column:_0x553e91}=_0x55c4ec[_0x5948ed(0x99)],_0x2fede7=Math[_0x5948ed(0xa5)](0x1,_0x9ece3b-0x1),_0x242b42=Math[_0x5948ed(0xb1)](_0x16e9c3[_0x5948ed(0xaf)],_0x9ece3b+0x1);_0x596d79[_0x5948ed(0x98)]('');for(let _0xc0c9a8=_0x2fede7;_0xc0c9a8<=_0x242b42;_0xc0c9a8++){const _0x577528=_0x16e9c3[_0xc0c9a8-0x1]||'',_0x139889=a154_0x16d6ed['dim'](_0xc0c9a8[_0x5948ed(0xa2)]()[_0x5948ed(0xb2)](0x4)),_0x335b46=a154_0x16d6ed[_0x5948ed(0xa8)]('\x20|\x20');if(_0xc0c9a8===_0x9ece3b){_0x596d79[_0x5948ed(0x98)]('\x20\x20'+_0x139889+_0x335b46+_0x5a1922(_0x577528));const _0x207b58='\x20'['repeat'](0x4+0x3+_0x553e91-0x1);_0x596d79[_0x5948ed(0x98)]('\x20\x20'+_0x207b58+_0x5a1922('^'));}else _0x596d79[_0x5948ed(0x98)]('\x20\x20'+_0x139889+_0x335b46+a154_0x16d6ed[_0x5948ed(0xa8)](_0x577528));}}return _0x596d79[_0x5948ed(0xb6)]('\x0a');}export function formatValidationResult(_0x121b45,_0x589574,_0x4c81e1){const _0x27293b=a154_0x5a0c,_0x162b74=[];for(const _0x140f64 of _0x121b45[_0x27293b(0xa6)]){_0x162b74[_0x27293b(0x98)](formatIssueWithContext(_0x140f64,_0x589574,_0x4c81e1)),_0x162b74[_0x27293b(0x98)]('');}for(const _0x45f8ce of _0x121b45[_0x27293b(0xb0)]){_0x162b74[_0x27293b(0x98)](formatIssueWithContext(_0x45f8ce,_0x589574,_0x4c81e1)),_0x162b74[_0x27293b(0x98)]('');}return _0x162b74['join']('\x0a');}
|