@treasuredata/tdx 2026.3.20 → 2026.3.21
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.d.ts +1 -1
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/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.d.ts +33 -0
- package/dist/commands/policy-command.d.ts.map +1 -0
- package/dist/commands/policy-command.js +1 -0
- package/dist/commands/policy-command.js.map +1 -0
- 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.d.ts +7 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.d.ts +41 -0
- package/dist/sdk/policy.d.ts.map +1 -0
- package/dist/sdk/policy.js +1 -0
- package/dist/sdk/policy.js.map +1 -0
- 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.d.ts +1 -0
- package/dist/sdk/types/index.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/index.js.map +1 -1
- package/dist/sdk/types/policy.d.ts +58 -0
- package/dist/sdk/types/policy.d.ts.map +1 -0
- package/dist/sdk/types/policy.js +1 -0
- package/dist/sdk/types/policy.js.map +1 -0
- 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(_0x4fae87,_0x506773){const _0x28be5d=a146_0x476e,_0x53c28f=_0x4fae87();while(!![]){try{const _0x52d49d=-parseInt(_0x28be5d(0xbb))/0x1*(-parseInt(_0x28be5d(0xc1))/0x2)+parseInt(_0x28be5d(0xb1))/0x3*(-parseInt(_0x28be5d(0xc0))/0x4)+-parseInt(_0x28be5d(0xa6))/0x5+parseInt(_0x28be5d(0x99))/0x6+-parseInt(_0x28be5d(0x9d))/0x7+-parseInt(_0x28be5d(0xad))/0x8*(-parseInt(_0x28be5d(0xaf))/0x9)+-parseInt(_0x28be5d(0xd1))/0xa*(parseInt(_0x28be5d(0xc9))/0xb);if(_0x52d49d===_0x506773)break;else _0x53c28f['push'](_0x53c28f['shift']());}catch(_0x2ebcc2){_0x53c28f['push'](_0x53c28f['shift']());}}}(a146_0x35de,0x4d60e));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x3d0559,_0x1ec594={},_0x56277d={}){const _0x43564d=a146_0x476e;if(_0x56277d[_0x43564d(0xca)])return runSemanticChecks(_0x3d0559,_0x1ec594);const _0x25baa4=SegmentDefSchema['safeParse'](_0x3d0559);if(_0x25baa4['success'])return runSemanticChecks(_0x25baa4['data'],_0x1ec594);return zodErrorsToValidationResult(_0x25baa4[_0x43564d(0xba)],_0x1ec594);}function a146_0x476e(_0x536a0c,_0xc37222){_0x536a0c=_0x536a0c-0x99;const _0x35de20=a146_0x35de();let _0x476ece=_0x35de20[_0x536a0c];return _0x476ece;}export function validateRuleDef(_0x30a35f,_0x2eeb34,_0xabb24a){const _0x31637f=a146_0x476e;if(!_0x30a35f)return[];const _0x1cbc1b=RuleDefSchema[_0x31637f(0xc7)](_0x30a35f);if(_0x1cbc1b[_0x31637f(0xdf)])return checkRule(_0x1cbc1b[_0x31637f(0xbf)],_0x2eeb34,_0xabb24a);const _0x34d0e0=flattenZodIssues(_0x1cbc1b[_0x31637f(0xba)]['issues']);return _0x34d0e0[_0x31637f(0xcd)](_0x3d0583=>{const _0x2edd52=_0x31637f,_0x4ba2ff=formatZodPath(_0x3d0583[_0x2edd52(0xa5)]),_0x324f23=_0x4ba2ff?_0x2eeb34+'.'+_0x4ba2ff:_0x2eeb34,_0x26f80d=mapZodIssueToCode(_0x3d0583,_0x4ba2ff),_0x1c5480=getLocationFromPath(_0xabb24a['document'],_0xabb24a[_0x2edd52(0xe2)],pathToArray(_0x324f23));return{'level':_0x2edd52(0xba),'path':_0x324f23,'code':_0x26f80d,'message':_0x3d0583[_0x2edd52(0xcc)],..._0x1c5480&&{'location':_0x1c5480}};});}function zodErrorsToValidationResult(_0x3cee3b,_0x47914a){const _0x2037fc=a146_0x476e,_0x26c7fc=flattenZodIssues(_0x3cee3b[_0x2037fc(0xb2)]),_0x48fcc0=_0x26c7fc[_0x2037fc(0xcd)](_0x40ccc6=>{const _0x55f742=_0x2037fc,_0x100bad=formatZodPath(_0x40ccc6[_0x55f742(0xa5)]),_0x15245c=mapZodIssueToCode(_0x40ccc6,_0x100bad),_0x1d4c1c=getLocationFromPath(_0x47914a[_0x55f742(0xcf)],_0x47914a[_0x55f742(0xe2)],_0x40ccc6['path'][_0x55f742(0xcd)](_0xfc5bc=>typeof _0xfc5bc===_0x55f742(0xa3)?String(_0xfc5bc):_0xfc5bc));return{'level':_0x55f742(0xba),'path':_0x100bad,'code':_0x15245c,'message':_0x40ccc6[_0x55f742(0xcc)],..._0x1d4c1c&&{'location':_0x1d4c1c}};});return{'valid':![],'errors':_0x48fcc0,'warnings':[]};}function mapZodIssueToCode(_0x32b5b4,_0x4798c8){const _0x1dba8a=a146_0x476e,_0x40f68d=_0x32b5b4[_0x1dba8a(0xd9)]===_0x1dba8a(0xbc)?_0x32b5b4[_0x1dba8a(0xdb)]:undefined;if(_0x4798c8===_0x1dba8a(0xa2))return _0x1dba8a(0xbe);if(_0x4798c8===_0x1dba8a(0xd3)||_0x4798c8[_0x1dba8a(0xdc)]('.type')){if(_0x32b5b4[_0x1dba8a(0xd9)]==='invalid_value'){if(_0x4798c8===_0x1dba8a(0xd3)||_0x4798c8[_0x1dba8a(0xc3)](/\.conditions\[\d+\]\.type$/))return _0x1dba8a(0xe0);}}if(_0x4798c8[_0x1dba8a(0xdc)](_0x1dba8a(0xa8)))return _0x1dba8a(0xa4);if(_0x4798c8['endsWith'](_0x1dba8a(0xc5)))return'MISSING_OPERATOR_VALUE';if(_0x40f68d?.[_0x1dba8a(0xd2)]===_0x1dba8a(0xc2))return _0x1dba8a(0xc2);if(_0x40f68d?.[_0x1dba8a(0xd2)]===_0x1dba8a(0xb8))return'MISSING_TIME_UNIT';if(_0x4798c8[_0x1dba8a(0xdc)](_0x1dba8a(0xce))||_0x4798c8==='conditions')return _0x1dba8a(0xb3);if(_0x4798c8[_0x1dba8a(0xc6)](_0x1dba8a(0x9a)))return _0x1dba8a(0xd7);if(_0x4798c8[_0x1dba8a(0xdc)]('.segment'))return _0x1dba8a(0xdd);return _0x1dba8a(0xd8);}function runSemanticChecks(_0x554673,_0xdb54af){const _0x3e6a36=a146_0x476e,_0x42a9a7=[];_0x554673['rule']&&_0x42a9a7[_0x3e6a36(0xbd)](...checkRule(_0x554673['rule'],'rule',_0xdb54af));const _0x1f5bc7=_0x42a9a7[_0x3e6a36(0xcb)](_0x38e4ff=>_0x38e4ff['level']===_0x3e6a36(0xba)),_0x526b9a=_0x42a9a7[_0x3e6a36(0xcb)](_0x4acaff=>_0x4acaff[_0x3e6a36(0xda)]==='warning');return{'valid':_0x1f5bc7[_0x3e6a36(0xac)]===0x0,'errors':_0x1f5bc7,'warnings':_0x526b9a};}function checkRule(_0x4c8742,_0xd92276,_0x41190e){const _0x5a44fd=a146_0x476e,_0x28ce42=[];if(_0x4c8742[_0x5a44fd(0xd6)][_0x5a44fd(0xac)]===0x0)return _0x28ce42[_0x5a44fd(0xbd)]({'level':_0x5a44fd(0xba),'path':_0xd92276+_0x5a44fd(0xce),'code':_0x5a44fd(0xaa),'message':_0x5a44fd(0x9c),'location':getLocationFromPath(_0x41190e[_0x5a44fd(0xcf)],_0x41190e[_0x5a44fd(0xe2)],pathToArray(_0xd92276+_0x5a44fd(0xce)))}),_0x28ce42;return _0x28ce42['push'](...checkConditions(_0x4c8742[_0x5a44fd(0xd6)],_0xd92276,_0x41190e)),_0x28ce42;}function a146_0x35de(){const _0x4c2f24=['endsWith','MISSING_SEGMENT_REFERENCE','\x27\x20with\x20attribute\x20\x27','success','INVALID_RULE_TYPE','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','source','3582006rxHbvx','arrayMatching','warning','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','164647LkNfLa','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','Value','aggregation','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','name','symbol','INVALID_OPERATOR_TYPE','path','58605EZsGiN','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','.operator.type','Attribute\x20name\x20cannot\x20be\x20empty','EMPTY_CONDITIONS','.filter','length','121224dbkgpG','Behavior','171VEXkDl','type','1005132mcrWOr','issues','MISSING_CONDITIONS','.attribute','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','.source','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','MISSING_TIME_UNIT','And','error','1yYsKob','custom','push','MISSING_NAME','data','4BWJQIK','212204VElzIK','MISSING_BETWEEN_BOUNDS','match','Attribute\x20\x27','.operator.value','includes','safeParse','.conditions[','11fkFKif','skipSchema','filter','message','map','.conditions','document','NESTED_CONDITION_GROUP','3037820kJLNnM','validationCode','rule.type','attribute','EMPTY_ATTRIBUTE','conditions','INVALID_ARRAY_MATCHING','SEGMENT_SCHEMA_ERROR','code','level','params'];a146_0x35de=function(){return _0x4c2f24;};return a146_0x35de();}function checkConditions(_0x2c8177,_0x5efde3,_0x54cdae){const _0x3a7325=a146_0x476e,_0x588861=[];for(let _0x4a5eb8=0x0;_0x4a5eb8<_0x2c8177[_0x3a7325(0xac)];_0x4a5eb8++){const _0x282388=_0x2c8177[_0x4a5eb8],_0x4dfc8d=_0x5efde3+_0x3a7325(0xc8)+_0x4a5eb8+']';_0x588861[_0x3a7325(0xbd)](...checkCondition(_0x282388,_0x4dfc8d,_0x54cdae));}return _0x588861;}function checkCondition(_0xe4c0a8,_0x2a1898,_0x30791c){const _0x319b10=a146_0x476e,_0x835666=[];if(_0xe4c0a8[_0x319b10(0xb0)]===_0x319b10(0xb9)||_0xe4c0a8[_0x319b10(0xb0)]==='Or')return _0xe4c0a8['conditions'][_0x319b10(0xac)]===0x0?_0x835666['push']({'level':_0x319b10(0xba),'path':_0x2a1898+_0x319b10(0xce),'code':_0x319b10(0xaa),'message':_0xe4c0a8[_0x319b10(0xb0)]+_0x319b10(0xe1),'location':getLocationFromPath(_0x30791c[_0x319b10(0xcf)],_0x30791c[_0x319b10(0xe2)],pathToArray(_0x2a1898+_0x319b10(0xce)))}):(_0x835666['push']({'level':_0x319b10(0x9b),'path':_0x2a1898,'code':_0x319b10(0xd0),'message':_0xe4c0a8['type']+_0x319b10(0xa7)+_0x319b10(0xb7)+'conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','location':getLocationFromPath(_0x30791c['document'],_0x30791c[_0x319b10(0xe2)],pathToArray(_0x2a1898))}),_0x835666[_0x319b10(0xbd)](...checkConditions(_0xe4c0a8[_0x319b10(0xd6)],_0x2a1898,_0x30791c))),_0x835666;if(_0xe4c0a8[_0x319b10(0xb0)]===_0x319b10(0x9f)||_0xe4c0a8[_0x319b10(0xb0)]===_0x319b10(0xae)){const _0x274e74=_0xe4c0a8,_0x27223f=_0x274e74['source'],_0x455ed8=_0x274e74[_0x319b10(0xa0)],_0x24f6e2=_0x27223f||_0x455ed8;(!_0x274e74[_0x319b10(0xd4)]||_0x274e74['attribute']==='')&&(!_0x24f6e2&&_0x835666[_0x319b10(0xbd)]({'level':'error','path':_0x2a1898+_0x319b10(0xb4),'code':_0x319b10(0xd5),'message':_0x319b10(0xa9),'location':getLocationFromPath(_0x30791c[_0x319b10(0xcf)],_0x30791c[_0x319b10(0xe2)],pathToArray(_0x2a1898+_0x319b10(0xb4)))}));_0x274e74[_0x319b10(0xcb)]&&_0x835666[_0x319b10(0xbd)](...checkRule(_0x274e74['filter'],_0x2a1898+_0x319b10(0xab),_0x30791c));if(_0x274e74[_0x319b10(0xe2)]){const _0x586509=_0x274e74[_0x319b10(0xd4)]&&_0x274e74[_0x319b10(0xd4)]!=='';_0x586509&&!_0x274e74[_0x319b10(0xcb)]&&_0x835666[_0x319b10(0xbd)]({'level':_0x319b10(0xba),'path':_0x2a1898+_0x319b10(0xb6),'code':'BEHAVIOR_SOURCE_MISSING_FILTER','message':'Behavior\x20source\x20\x27'+_0x274e74[_0x319b10(0xe2)]+_0x319b10(0xde)+_0x274e74[_0x319b10(0xd4)]+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+'the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20'+_0x319b10(0xa1),'location':getLocationFromPath(_0x30791c['document'],_0x30791c[_0x319b10(0xe2)],pathToArray(_0x2a1898+_0x319b10(0xb6)))}),_0x586509&&_0x274e74[_0x319b10(0xcb)]&&_0x835666['push']({'level':_0x319b10(0x9b),'path':_0x2a1898+_0x319b10(0xb4),'code':'BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message':_0x319b10(0xc4)+_0x274e74['attribute']+_0x319b10(0xb5)+_0x319b10(0x9e),'location':getLocationFromPath(_0x30791c[_0x319b10(0xcf)],_0x30791c[_0x319b10(0xe2)],pathToArray(_0x2a1898+_0x319b10(0xb4)))});}}return _0x835666;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58c871,_0x25e4ad){const _0x4a7467=a147_0x4bc1,_0x1b9122=_0x58c871();while(!![]){try{const _0x40b284=-parseInt(_0x4a7467(0x1c5))/0x1+-parseInt(_0x4a7467(0x1a8))/0x2+parseInt(_0x4a7467(0x1ae))/0x3*(parseInt(_0x4a7467(0x1b7))/0x4)+-parseInt(_0x4a7467(0x1c6))/0x5+parseInt(_0x4a7467(0x1d5))/0x6*(-parseInt(_0x4a7467(0x1cd))/0x7)+-parseInt(_0x4a7467(0x1a6))/0x8*(-parseInt(_0x4a7467(0x1b8))/0x9)+parseInt(_0x4a7467(0x1c1))/0xa*(parseInt(_0x4a7467(0x1a1))/0xb);if(_0x40b284===_0x25e4ad)break;else _0x1b9122['push'](_0x1b9122['shift']());}catch(_0x49035a){_0x1b9122['push'](_0x1b9122['shift']());}}}(a147_0x37cd,0xa9150));import a147_0x1f43ca from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';function a147_0x4bc1(_0xcd2802,_0x3d75a6){_0xcd2802=_0xcd2802-0x1a1;const _0x37cd70=a147_0x37cd();let _0x4bc1d6=_0x37cd70[_0xcd2802];return _0x4bc1d6;}export function isSuccessfulResolution(_0x54e2ec){const _0x12addb=a147_0x4bc1;return _0x54e2ec[_0x12addb(0x1a4)]!=='error';}export function isScopedResolution(_0x52d531){const _0x59aadf=a147_0x4bc1;return _0x52d531[_0x59aadf(0x1a4)]===_0x59aadf(0x1a9)||_0x52d531[_0x59aadf(0x1a4)]==='file'||_0x52d531[_0x59aadf(0x1a4)]==='context';}export function getScopedDetails(_0x4429ae){const _0x311dcf=a147_0x4bc1;if(isScopedResolution(_0x4429ae))return{'isScoped':_0x4429ae['isScoped'],'scopedFolderPath':_0x4429ae[_0x311dcf(0x1ce)]};return undefined;}async function findTdxConfigAsync(_0x45759c,_0x14b0b0){const _0x321143=a147_0x4bc1;let _0x1a6513=a147_0x1f43ca[_0x321143(0x1a2)](_0x45759c);const _0x19074e=a147_0x1f43ca[_0x321143(0x1a3)](_0x1a6513)['root'];while(_0x1a6513!==_0x19074e){const _0x5c2f56=a147_0x1f43ca['join'](_0x1a6513,_0x321143(0x1b0));if(await _0x14b0b0[_0x321143(0x1b9)](_0x5c2f56))try{const _0x47935e=await _0x14b0b0[_0x321143(0x1ac)](_0x5c2f56),_0xc02d7a=JSON[_0x321143(0x1a3)](_0x47935e);if(_0xc02d7a[_0x321143(0x1c3)]&&typeof _0xc02d7a[_0x321143(0x1c3)]===_0x321143(0x1b3))return{'configPath':_0x5c2f56,'configDir':_0x1a6513,'parentSegment':_0xc02d7a[_0x321143(0x1c3)]};}catch{}_0x1a6513=a147_0x1f43ca[_0x321143(0x1d2)](_0x1a6513);}return null;}function calculateScopedPath(_0x301b25,_0x6367d8){const _0x1c3e10=a147_0x4bc1,_0x5010f1=a147_0x1f43ca['relative'](_0x6367d8,_0x301b25),_0x1b898f=_0x5010f1!==''&&_0x5010f1!=='.'&&!_0x5010f1[_0x1c3e10(0x1a7)]('..');return{'isScoped':_0x1b898f,'scopedFolderPath':_0x1b898f?_0x5010f1['replace'](/\\/g,'/'):''};}function a147_0x37cd(){const _0x4627ca=['parentSegment','readFile','segment','165NBDuDe','no_config','tdx.json','context','parent_name','string','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','trim','extname','91668UxvcRF','297ZZKMZc','exists','invalid_yaml','isScoped','journey','match','includes','cwd','folderPath','2960UDrbeX','Not\x20a\x20YAML\x20file:\x20','parent_segment','isFile','208113TLKNwm','253925FsddGp','segmentName','No\x20tdx.json\x20found\x20for\x20file:\x20','file','resourceType','error','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','6474398eAenyP','scopedFolderPath','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','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','configDir','dirname','file_not_found','basename','6QIYXKE','53856vZbGpL','resolve','parse','type','No\x20tdx.json\x20found','126720dZRgaa','startsWith','2711998qkneFk','directory','File\x20not\x20found'];a147_0x37cd=function(){return _0x4627ca;};return a147_0x37cd();}export async function resolveTarget(_0x13eda1){const _0xe2f3e2=a147_0x4bc1,{arg:_0x561a83,contextParent:_0x14d50d,cwd:cwd=process[_0xe2f3e2(0x1bf)](),fs:fs=nodeFileSystem}=_0x13eda1;if(_0x561a83&&isYamlFilePath(_0x561a83))try{const _0x31e394=await resolveYamlFilePath(_0x561a83,fs),_0x3ab180=a147_0x1f43ca[_0xe2f3e2(0x1a2)](_0x561a83),_0x511cc4=a147_0x1f43ca[_0xe2f3e2(0x1d2)](_0x3ab180),_0x367e1c=await findTdxConfigAsync(_0x511cc4,fs);if(!_0x367e1c){if(_0x14d50d){const _0x13e93c=a147_0x1f43ca[_0xe2f3e2(0x1d2)](_0x3ab180);return{'type':_0xe2f3e2(0x1c9),'parentName':_0x14d50d,'targetDir':_0x13e93c,'configRoot':_0x13e93c,'filePath':_0x3ab180,'resourceName':_0x31e394[_0xe2f3e2(0x1c7)],'folderPath':_0x31e394[_0xe2f3e2(0x1c0)],'resourceType':_0x31e394[_0xe2f3e2(0x1ca)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0xe2f3e2(0x1cb),'errorCode':'no_config','message':_0xe2f3e2(0x1c8)+_0x561a83,'arg':_0x561a83,'helpText':_0xe2f3e2(0x1d0)};}const _0x4a04c8=calculateScopedPath(_0x511cc4,_0x367e1c[_0xe2f3e2(0x1d1)]);return{'type':_0xe2f3e2(0x1c9),'parentName':_0x367e1c[_0xe2f3e2(0x1ab)],'targetDir':_0x367e1c[_0xe2f3e2(0x1d1)],'configRoot':_0x367e1c[_0xe2f3e2(0x1d1)],'filePath':_0x3ab180,'resourceName':_0x31e394['segmentName'],'folderPath':_0x31e394[_0xe2f3e2(0x1c0)],'resourceType':_0x31e394[_0xe2f3e2(0x1ca)],'isScoped':_0x4a04c8['isScoped'],'scopedFolderPath':_0x4a04c8[_0xe2f3e2(0x1ce)]};}catch(_0x590225){const _0x8bae1d=_0x590225 instanceof Error?_0x590225['message']:String(_0x590225);if(_0x8bae1d[_0xe2f3e2(0x1be)](_0xe2f3e2(0x1aa)))return{'type':'error','errorCode':_0xe2f3e2(0x1d3),'message':'File\x20not\x20found:\x20'+_0x561a83,'arg':_0x561a83};if(_0x8bae1d[_0xe2f3e2(0x1be)](_0xe2f3e2(0x1a5))){if(_0x14d50d){const _0x1e6924=a147_0x1f43ca[_0xe2f3e2(0x1a2)](_0x561a83);if(await fs[_0xe2f3e2(0x1b9)](_0x1e6924)){const _0x12e6b1=a147_0x1f43ca[_0xe2f3e2(0x1d2)](_0x1e6924),_0x2dcab3=await fs[_0xe2f3e2(0x1ac)](_0x1e6924),_0x4ab173=_0x2dcab3[_0xe2f3e2(0x1bd)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x183d22=_0x2dcab3[_0xe2f3e2(0x1bd)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x4aa469=_0x4ab173?_0x4ab173[0x1][_0xe2f3e2(0x1b5)]():a147_0x1f43ca[_0xe2f3e2(0x1d4)](_0x561a83,a147_0x1f43ca[_0xe2f3e2(0x1b6)](_0x561a83)),_0x107d7b=_0x183d22&&_0x183d22[0x1]['trim']()==='journey'?_0xe2f3e2(0x1bc):_0xe2f3e2(0x1ad);return{'type':_0xe2f3e2(0x1c9),'parentName':_0x14d50d,'targetDir':_0x12e6b1,'configRoot':_0x12e6b1,'filePath':_0x1e6924,'resourceName':_0x4aa469,'folderPath':'','resourceType':_0x107d7b,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0xe2f3e2(0x1af),'message':_0xe2f3e2(0x1c8)+_0x561a83,'arg':_0x561a83,'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'};}return{'type':_0xe2f3e2(0x1cb),'errorCode':_0xe2f3e2(0x1ba),'message':_0x8bae1d,'arg':_0x561a83};}if(_0x561a83){const _0xaf5824=a147_0x1f43ca[_0xe2f3e2(0x1a2)](cwd,_0x561a83);let _0x5710c0=null;try{_0x5710c0=await fs['stat'](_0xaf5824);}catch{}if(_0x5710c0?.['isDirectory']()){const _0x6956e2=await findTdxConfigAsync(_0xaf5824,fs);if(_0x6956e2){const _0x41ba54=calculateScopedPath(_0xaf5824,_0x6956e2['configDir']);return{'type':_0xe2f3e2(0x1a9),'parentName':_0x6956e2['parentSegment'],'targetDir':_0xaf5824,'configRoot':_0x6956e2[_0xe2f3e2(0x1d1)],'isScoped':_0x41ba54['isScoped'],'scopedFolderPath':_0x41ba54[_0xe2f3e2(0x1ce)]};}if(_0x14d50d)return{'type':_0xe2f3e2(0x1a9),'parentName':_0x14d50d,'targetDir':_0xaf5824,'configRoot':_0xaf5824,'isScoped':![],'scopedFolderPath':''};return{'type':'error','errorCode':_0xe2f3e2(0x1af),'message':_0xe2f3e2(0x1cc)+_0x561a83,'arg':_0x561a83,'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(_0x5710c0?.[_0xe2f3e2(0x1c4)]())return{'type':'error','errorCode':_0xe2f3e2(0x1ba),'message':_0xe2f3e2(0x1c2)+_0x561a83,'arg':_0x561a83,'helpText':_0xe2f3e2(0x1b4)};const _0x18154c=sanitizeFileName(_0x561a83),_0x10dfae=getSegmentRootDir(_0x18154c,cwd);return{'type':_0xe2f3e2(0x1b2),'parentName':_0x561a83,'targetDir':_0x10dfae,'configRoot':_0x10dfae};}const _0x2ee503=await findTdxConfigAsync(cwd,fs);if(_0x2ee503){const _0x3f12a2=calculateScopedPath(cwd,_0x2ee503[_0xe2f3e2(0x1d1)]);return{'type':_0xe2f3e2(0x1b1),'parentName':_0x2ee503[_0xe2f3e2(0x1ab)],'targetDir':cwd,'configRoot':_0x2ee503[_0xe2f3e2(0x1d1)],'isScoped':_0x3f12a2[_0xe2f3e2(0x1bb)],'scopedFolderPath':_0x3f12a2[_0xe2f3e2(0x1ce)]};}if(_0x14d50d){const _0x1f207c=sanitizeFileName(_0x14d50d),_0x1d10af=getSegmentRootDir(_0x1f207c,cwd);return{'type':_0xe2f3e2(0x1b1),'parentName':_0x14d50d,'targetDir':_0x1d10af,'configRoot':_0x1d10af,'isScoped':![],'scopedFolderPath':''};}return{'type':_0xe2f3e2(0x1cb),'errorCode':'no_parent','message':'Parent\x20segment\x20not\x20specified','helpText':_0xe2f3e2(0x1cf)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x57fdc1=a148_0x56f9;(function(_0x561215,_0x1a9de9){const _0x4e70ea=a148_0x56f9,_0x177fc0=_0x561215();while(!![]){try{const _0x1f4fb5=parseInt(_0x4e70ea(0x114))/0x1*(-parseInt(_0x4e70ea(0x115))/0x2)+-parseInt(_0x4e70ea(0x127))/0x3+parseInt(_0x4e70ea(0x124))/0x4*(parseInt(_0x4e70ea(0x116))/0x5)+-parseInt(_0x4e70ea(0x11f))/0x6+parseInt(_0x4e70ea(0x118))/0x7+parseInt(_0x4e70ea(0x10e))/0x8+parseInt(_0x4e70ea(0x126))/0x9;if(_0x1f4fb5===_0x1a9de9)break;else _0x177fc0['push'](_0x177fc0['shift']());}catch(_0x19c4f3){_0x177fc0['push'](_0x177fc0['shift']());}}}(a148_0x23ec,0x72687));import{existsSync,readFileSync}from'fs';import a148_0x2695e8 from'path';function a148_0x23ec(){const _0x16464b=['1183266lAADXb','utf-8','engage_workspace','object','dirname','44bOgvhc','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','13450302yGrVHl','993915EZSbYQ','parent_segment','Invalid\x20JSON\x20in\x20','1072840BLzEjQ','startsWith','parse','stringify','cwd','Invalid\x20tdx.json:\x20expected\x20object','4801uEqBqG','286UNSAQN','965PzZoRc','resolve','370776dhgQXg','tdx.json','relative','root','string','join','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field'];a148_0x23ec=function(){return _0x16464b;};return a148_0x23ec();}function a148_0x56f9(_0x55e7a4,_0x37be0c){_0x55e7a4=_0x55e7a4-0x10c;const _0x23ecf2=a148_0x23ec();let _0x56f966=_0x23ecf2[_0x55e7a4];return _0x56f966;}const TDX_CONFIG_FILE=a148_0x57fdc1(0x119),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x51645e=process['cwd']()){const _0x501e6f=a148_0x57fdc1;let _0x1f09ad=a148_0x2695e8[_0x501e6f(0x117)](_0x51645e);const _0x479383=a148_0x2695e8[_0x501e6f(0x110)](_0x1f09ad)[_0x501e6f(0x11b)];while(_0x1f09ad!==_0x479383){const _0x3e1888=a148_0x2695e8['join'](_0x1f09ad,TDX_CONFIG_FILE);if(existsSync(_0x3e1888))return _0x3e1888;_0x1f09ad=a148_0x2695e8[_0x501e6f(0x123)](_0x1f09ad);}return null;}export function loadTdxConfig(_0x5f3afe){const _0x199a31=a148_0x57fdc1,_0x3961d2=readFileSync(_0x5f3afe,_0x199a31(0x120));let _0x5c8f8a;try{_0x5c8f8a=JSON[_0x199a31(0x110)](_0x3961d2);}catch{throw new Error(_0x199a31(0x10d)+_0x5f3afe);}if(!_0x5c8f8a||typeof _0x5c8f8a!==_0x199a31(0x122))throw new Error(_0x199a31(0x113));const _0x3077f1=_0x5c8f8a,_0x49a5ae=_0x3077f1[_0x199a31(0x10c)]&&typeof _0x3077f1[_0x199a31(0x10c)]===_0x199a31(0x11c),_0x472090=_0x3077f1[_0x199a31(0x121)]&&typeof _0x3077f1[_0x199a31(0x121)]===_0x199a31(0x11c);if(!_0x49a5ae&&!_0x472090)throw new Error(_0x199a31(0x11e));const _0x28cffb={};return _0x49a5ae&&(_0x28cffb['parent_segment']=_0x3077f1[_0x199a31(0x10c)]),_0x472090&&(_0x28cffb[_0x199a31(0x121)]=_0x3077f1[_0x199a31(0x121)]),_0x28cffb;}export function findTdxConfig(_0x4e7890=process[a148_0x57fdc1(0x112)]()){const _0x5d95d6=a148_0x57fdc1,_0x61cb9d=findTdxConfigPath(_0x4e7890);if(!_0x61cb9d)throw new Error(_0x5d95d6(0x125));const _0x23ef85=loadTdxConfig(_0x61cb9d),_0x1a57bd=a148_0x2695e8[_0x5d95d6(0x123)](_0x61cb9d);return{'config':_0x23ef85,'configPath':_0x61cb9d,'configDir':_0x1a57bd};}export function tryFindTdxConfig(_0x37b3e1){try{return findTdxConfig(_0x37b3e1);}catch{return null;}}export function getSegmentRootDir(_0x394cb8,_0x4f0107=process[a148_0x57fdc1(0x112)]()){const _0x2c2f56=a148_0x57fdc1;return a148_0x2695e8[_0x2c2f56(0x11d)](_0x4f0107,SEGMENTS_DIR,_0x394cb8);}export function getTdxConfigPath(_0x567a36,_0x1d7e96=process[a148_0x57fdc1(0x112)]()){const _0x298491=a148_0x57fdc1;return a148_0x2695e8[_0x298491(0x11d)](getSegmentRootDir(_0x567a36,_0x1d7e96),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x46bbc5,_0x1acdd7){const _0x2f97a9=a148_0x57fdc1,_0x3e3ba5=a148_0x2695e8['resolve'](_0x46bbc5),_0xc1bc54=a148_0x2695e8[_0x2f97a9(0x11a)](_0x1acdd7,_0x3e3ba5);if(_0xc1bc54[_0x2f97a9(0x10f)]('..'))return'';return _0xc1bc54;}export function localPathToTdFolderPath(_0x1af5de){const _0x258604=a148_0x57fdc1,_0xf4f837=a148_0x2695e8[_0x258604(0x123)](_0x1af5de);if(_0xf4f837==='.'||_0xf4f837==='')return'';return _0xf4f837['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x1e5666,_0x3e124a){if(!_0x1e5666)return _0x3e124a;return a148_0x2695e8['join'](_0x3e124a,_0x1e5666);}export function createTdxConfigContent(_0x2b865a){const _0x19bf5d=a148_0x57fdc1,_0x3f9e9f={'parent_segment':_0x2b865a};return JSON[_0x19bf5d(0x111)](_0x3f9e9f,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x4f21f0){const _0x2b4dac=a148_0x57fdc1,_0x13563e={'engage_workspace':_0x4f21f0};return JSON[_0x2b4dac(0x111)](_0x13563e,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x2d450f=a149_0x352d;(function(_0x5973f8,_0x3ed180){const _0xb380e9=a149_0x352d,_0x35cc4e=_0x5973f8();while(!![]){try{const _0x3f4c4e=-parseInt(_0xb380e9(0x18e))/0x1+-parseInt(_0xb380e9(0x170))/0x2*(-parseInt(_0xb380e9(0x17c))/0x3)+parseInt(_0xb380e9(0x184))/0x4+-parseInt(_0xb380e9(0x182))/0x5*(parseInt(_0xb380e9(0x17e))/0x6)+-parseInt(_0xb380e9(0x179))/0x7+parseInt(_0xb380e9(0x18f))/0x8+-parseInt(_0xb380e9(0x18c))/0x9;if(_0x3f4c4e===_0x3ed180)break;else _0x35cc4e['push'](_0x35cc4e['shift']());}catch(_0x8c3b43){_0x35cc4e['push'](_0x35cc4e['shift']());}}}(a149_0x50bc,0xe0602));import{z}from'zod';export const ScheduleTypeSchema=z[a149_0x2d450f(0x18a)]([a149_0x2d450f(0x186),a149_0x2d450f(0x17a),a149_0x2d450f(0x175),'weekly',a149_0x2d450f(0x188),a149_0x2d450f(0x17f),'minutes_interval']);export const RepeatUnitSchema=z[a149_0x2d450f(0x18a)]([a149_0x2d450f(0x181),a149_0x2d450f(0x173),a149_0x2d450f(0x18d),'week',a149_0x2d450f(0x180),a149_0x2d450f(0x176),'none']);export const ScheduleDefSchema=z[a149_0x2d450f(0x16d)]({'type':ScheduleTypeSchema[a149_0x2d450f(0x185)](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a149_0x2d450f(0x189)]()['optional'](),'repeat_sub_frequency':z['array'](z[a149_0x2d450f(0x189)]())[a149_0x2d450f(0x185)](),'start_at':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x18b)]()['optional'](),'end_on':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x18b)]()['optional'](),'timezone':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x185)]()});export const NotificationDefSchema=z[a149_0x2d450f(0x16d)]({'notify_on':z[a149_0x2d450f(0x191)](z['enum']([a149_0x2d450f(0x183),'onFailure']))[a149_0x2d450f(0x185)](),'email_recipients':z['array'](z[a149_0x2d450f(0x172)]())[a149_0x2d450f(0x185)]()});export const ActivationColumnDefSchema=z['union']([z[a149_0x2d450f(0x172)](),z[a149_0x2d450f(0x16d)]({'name':z[a149_0x2d450f(0x172)](),'type':z[a149_0x2d450f(0x172)]()['optional'](),'visibility':z[a149_0x2d450f(0x18a)](['clear',a149_0x2d450f(0x16e)])[a149_0x2d450f(0x185)]()})]);function a149_0x352d(_0x534bfa,_0x5d4c9e){_0x534bfa=_0x534bfa-0x16d;const _0x50bc3e=a149_0x50bc();let _0x352d14=_0x50bc3e[_0x534bfa];return _0x352d14;}export const ActivationBehaviorDefSchema=z[a149_0x2d450f(0x16d)]({'columns':z[a149_0x2d450f(0x191)](z['object']({'name':z['string'](),'type':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x185)](),'visibility':z[a149_0x2d450f(0x18a)](['clear',a149_0x2d450f(0x16e)])['optional']()}))['optional'](),'behavior_table':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x185)](),'join_row':z[a149_0x2d450f(0x189)]()[a149_0x2d450f(0x18b)]()[a149_0x2d450f(0x185)](),'join_strategy':z['enum']([a149_0x2d450f(0x177),a149_0x2d450f(0x178),'Last','Top-N'])['optional'](),'formatting':z[a149_0x2d450f(0x18a)]([a149_0x2d450f(0x16f),'cols'])['optional'](),'order_by':z[a149_0x2d450f(0x191)](z[a149_0x2d450f(0x16d)]({'key':z[a149_0x2d450f(0x172)](),'order':z[a149_0x2d450f(0x18a)](['asc',a149_0x2d450f(0x17b)])}))[a149_0x2d450f(0x185)]()});export const ActivationDefSchema=z['object']({'name':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x187)](0x1,a149_0x2d450f(0x171)),'description':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x185)](),'connection':z['string']()[a149_0x2d450f(0x187)](0x1,a149_0x2d450f(0x17d)),'all_columns':z['boolean']()['optional'](),'columns':z[a149_0x2d450f(0x191)](ActivationColumnDefSchema)[a149_0x2d450f(0x185)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a149_0x2d450f(0x185)](),'connector_config':z[a149_0x2d450f(0x190)](z['string'](),z['unknown']())[a149_0x2d450f(0x185)](),'activation_template_id':z[a149_0x2d450f(0x172)]()[a149_0x2d450f(0x18b)]()[a149_0x2d450f(0x185)](),'behavior':ActivationBehaviorDefSchema[a149_0x2d450f(0x18b)]()[a149_0x2d450f(0x185)](),'run_after_journey_refresh':z[a149_0x2d450f(0x174)]()[a149_0x2d450f(0x185)]()});function a149_0x50bc(){const _0x2cb25f=['string','hour','boolean','daily','once','All','First','1317309eaGrGQ','hourly','desc','1713qkHkhD','Connection\x20name\x20is\x20required','12PFVGaB','cron','month','minute','268505MFtLXv','onSuccess','6208580KQNbSu','optional','none','min','monthly','number','enum','nullable','9132525SXRuhe','day','970356EcIycV','10901104yEmTQT','record','array','object','masked','rows','998hbnfIR','Activation\x20name\x20is\x20required'];a149_0x50bc=function(){return _0x2cb25f;};return a149_0x50bc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42f501,_0x2a0add){var _0xabb2ae=a150_0x2e36,_0x564a07=_0x42f501();while(!![]){try{var _0x2f1ff1=parseInt(_0xabb2ae(0x1b3))/0x1*(-parseInt(_0xabb2ae(0x1af))/0x2)+-parseInt(_0xabb2ae(0x1b6))/0x3+parseInt(_0xabb2ae(0x1ae))/0x4+parseInt(_0xabb2ae(0x1b7))/0x5*(-parseInt(_0xabb2ae(0x1b4))/0x6)+parseInt(_0xabb2ae(0x1b0))/0x7+parseInt(_0xabb2ae(0x1b1))/0x8*(-parseInt(_0xabb2ae(0x1b5))/0x9)+parseInt(_0xabb2ae(0x1b2))/0xa;if(_0x2f1ff1===_0x2a0add)break;else _0x564a07['push'](_0x564a07['shift']());}catch(_0x4761e9){_0x564a07['push'](_0x564a07['shift']());}}}(a150_0x5712,0xd1e31));function a150_0x2e36(_0x3f17de,_0x1cf048){_0x3f17de=_0x3f17de-0x1ae;var _0x571291=a150_0x5712();var _0x2e3690=_0x571291[_0x3f17de];return _0x2e3690;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a150_0x5712(){var _0x4dbd7e=['2857SIktOr','6loctPE','367479zkdifT','4839765bShhxe','8447570AWlQdJ','4728568koeJlH','148SUpOOL','5894154wmiqnb','296bEajON','38604670ItcIov'];a150_0x5712=function(){return _0x4dbd7e;};return a150_0x5712();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a151_0x21c7(_0x3961fa,_0x2be6ce){_0x3961fa=_0x3961fa-0x1b3;const _0x141c4f=a151_0x141c();let _0x21c7e5=_0x141c4f[_0x3961fa];return _0x21c7e5;}const a151_0x338f40=a151_0x21c7;function a151_0x141c(){const _0x3f78c5=['8zLpsKS','decision_point','jump','end','stages','draft','1961508ckoeSi','7CBWAUn','no_reentry','object','reentry_always','simulation','record','5242734PCkLyW','10489130IZXTbN','1125140hgALdK','99Qgglpb','type','merge','boolean','journey','1384615exhNPy','length','discriminatedUnion','reentry_unless_goal_achieved','filter','132448rxHwxV','834250oLRxtU','lazy','array','versions','min','string','optional','enum','journeys','week','ab_test','literal','activation','number','passthrough','refine','wait'];a151_0x141c=function(){return _0x3f78c5;};return a151_0x141c();}(function(_0x22182b,_0x288487){const _0x10cb1c=a151_0x21c7,_0x4fdca6=_0x22182b();while(!![]){try{const _0x5030b1=parseInt(_0x10cb1c(0x1b9))/0x1+parseInt(_0x10cb1c(0x1d9))/0x2+parseInt(_0x10cb1c(0x1d0))/0x3+-parseInt(_0x10cb1c(0x1ca))/0x4*(-parseInt(_0x10cb1c(0x1b3))/0x5)+parseInt(_0x10cb1c(0x1d7))/0x6*(-parseInt(_0x10cb1c(0x1d1))/0x7)+parseInt(_0x10cb1c(0x1b8))/0x8*(-parseInt(_0x10cb1c(0x1da))/0x9)+-parseInt(_0x10cb1c(0x1d8))/0xa;if(_0x5030b1===_0x288487)break;else _0x4fdca6['push'](_0x4fdca6['shift']());}catch(_0x467358){_0x4fdca6['push'](_0x4fdca6['shift']());}}}(a151_0x141c,0x79fe4));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a151_0x338f40(0x1c0)]([a151_0x338f40(0x1cf),a151_0x338f40(0x1d5),'launched']);export const ReentryModeTypeSchema=z[a151_0x338f40(0x1c0)]([a151_0x338f40(0x1d2),a151_0x338f40(0x1b6),a151_0x338f40(0x1d4)]);export const WaitUnitTypeSchema=z['enum'](['day',a151_0x338f40(0x1c2)]);export const StepTypeValueSchema=z[a151_0x338f40(0x1c0)]([a151_0x338f40(0x1c9),a151_0x338f40(0x1c5),a151_0x338f40(0x1cb),a151_0x338f40(0x1c3),a151_0x338f40(0x1dc),'jump',a151_0x338f40(0x1cd)]);export const EmbeddedSegmentDefSchema=z[a151_0x338f40(0x1d3)]({'description':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a151_0x338f40(0x1be)](),'stage':z[a151_0x338f40(0x1be)](),'bundle_id':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)]()});export const CriteriaDefSchema=z[a151_0x338f40(0x1d3)]({'name':z[a151_0x338f40(0x1be)](),'description':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'segment':z['string'](),'target':JumpTargetDefSchema[a151_0x338f40(0x1bf)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a151_0x338f40(0x1c6)](),'unit':WaitUnitTypeSchema,'next':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)]()}),WaitConditionDefSchema=z[a151_0x338f40(0x1d3)]({'segment':z['string'](),'next':z[a151_0x338f40(0x1be)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z['object']({'duration':z[a151_0x338f40(0x1c6)]()['optional'](),'unit':WaitUnitTypeSchema[a151_0x338f40(0x1bf)](),'wait_until':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'condition':WaitConditionDefSchema[a151_0x338f40(0x1bf)](),'days_of_week':z[a151_0x338f40(0x1bb)](z[a151_0x338f40(0x1be)]())[a151_0x338f40(0x1bf)]()}),StepBaseFields={'name':z[a151_0x338f40(0x1be)](),'uuid':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'next':z['string']()[a151_0x338f40(0x1bf)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a151_0x338f40(0x1d3)]({'activation':z[a151_0x338f40(0x1be)]()}),ActivationStepDefSchema=z[a151_0x338f40(0x1d3)]({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x338f40(0x1d3)]({'name':z[a151_0x338f40(0x1be)](),'segment':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'segment_id':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'excluded':z[a151_0x338f40(0x1dd)]()['optional'](),'next':z['string']()[a151_0x338f40(0x1bf)]()}),DecisionPointStepParamsDefSchema=z[a151_0x338f40(0x1d3)]({'branches':z[a151_0x338f40(0x1bb)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x338f40(0x1d3)]({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x338f40(0x1d3)]({'id':z[a151_0x338f40(0x1be)]()['optional'](),'name':z[a151_0x338f40(0x1be)](),'percentage':z['number'](),'next':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)]()}),AbTestStepParamsDefSchema=z[a151_0x338f40(0x1d3)]({'variants':z[a151_0x338f40(0x1bb)](AbTestVariantDefSchema),'unique_id':z['string']()['optional'](),'customized_split':z[a151_0x338f40(0x1dd)]()[a151_0x338f40(0x1bf)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)](a151_0x338f40(0x1c3)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a151_0x338f40(0x1d3)]({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)]('merge')}),JumpStepParamsDefSchema=z[a151_0x338f40(0x1d3)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x338f40(0x1d3)]({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)](a151_0x338f40(0x1cc)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a151_0x338f40(0x1d3)]({...StepBaseFields,'type':z[a151_0x338f40(0x1c4)](a151_0x338f40(0x1cd))})[a151_0x338f40(0x1c7)]();export const StepDefSchema=z[a151_0x338f40(0x1b5)](a151_0x338f40(0x1db),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a151_0x338f40(0x1be)](),'description':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'id':z['string']()[a151_0x338f40(0x1bf)](),'entry_criteria':CriteriaDefSchema[a151_0x338f40(0x1bf)](),'exit_criteria':z['array'](CriteriaDefSchema)[a151_0x338f40(0x1bf)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'steps':z['array'](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z[a151_0x338f40(0x1d3)]({'name':z['string']()[a151_0x338f40(0x1bf)](),'version':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'state':JourneyStateTypeSchema[a151_0x338f40(0x1bf)](),'latest':z[a151_0x338f40(0x1dd)]()[a151_0x338f40(0x1bf)](),'stages':z[a151_0x338f40(0x1bb)](StageDefSchema),'id':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'version_number':z[a151_0x338f40(0x1c6)]()[a151_0x338f40(0x1bf)](),'goal':CriteriaDefSchema[a151_0x338f40(0x1bf)](),'reentry':ReentryModeTypeSchema[a151_0x338f40(0x1bf)]()});export const JourneyDefSchema=z[a151_0x338f40(0x1ba)](()=>z[a151_0x338f40(0x1d3)]({'type':z[a151_0x338f40(0x1c4)](a151_0x338f40(0x1de)),'name':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bd)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'bundle_id':z['string']()[a151_0x338f40(0x1bf)](),'bundle_name':z[a151_0x338f40(0x1be)]()['optional'](),'folder_id':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'reentry':ReentryModeTypeSchema[a151_0x338f40(0x1bf)](),'allow_reentry':z[a151_0x338f40(0x1dd)]()[a151_0x338f40(0x1bf)](),'goal':CriteriaDefSchema[a151_0x338f40(0x1bf)](),'id':z[a151_0x338f40(0x1be)]()[a151_0x338f40(0x1bf)](),'version':z[a151_0x338f40(0x1be)]()['optional'](),'version_number':z[a151_0x338f40(0x1c6)]()[a151_0x338f40(0x1bf)](),'stages':z[a151_0x338f40(0x1bb)](StageDefSchema)[a151_0x338f40(0x1bf)](),'versions':z[a151_0x338f40(0x1bb)](JourneyEntryDefSchema)[a151_0x338f40(0x1bf)](),'journeys':z[a151_0x338f40(0x1bb)](JourneyEntryDefSchema)['optional'](),'segments':z[a151_0x338f40(0x1d6)](z[a151_0x338f40(0x1be)](),EmbeddedSegmentDefSchema)[a151_0x338f40(0x1bf)](),'activations':z['record'](z[a151_0x338f40(0x1be)](),ActivationDefSchema)['optional']()})[a151_0x338f40(0x1c8)](_0x213f32=>{const _0x37d59d=a151_0x338f40,_0x12fed4=[_0x213f32[_0x37d59d(0x1c1)],_0x213f32[_0x37d59d(0x1ce)],_0x213f32[_0x37d59d(0x1bc)]][_0x37d59d(0x1b7)](_0x3846ee=>Array['isArray'](_0x3846ee)&&_0x3846ee[_0x37d59d(0x1b4)]>0x0)[_0x37d59d(0x1b4)];return _0x12fed4===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39457c,_0x404b98){var _0x1c848b=a153_0x1700,_0x3c783c=_0x39457c();while(!![]){try{var _0x3af2a9=parseInt(_0x1c848b(0x172))/0x1+-parseInt(_0x1c848b(0x171))/0x2+parseInt(_0x1c848b(0x170))/0x3*(-parseInt(_0x1c848b(0x173))/0x4)+-parseInt(_0x1c848b(0x16f))/0x5+parseInt(_0x1c848b(0x16d))/0x6+-parseInt(_0x1c848b(0x174))/0x7+parseInt(_0x1c848b(0x175))/0x8*(parseInt(_0x1c848b(0x16e))/0x9);if(_0x3af2a9===_0x404b98)break;else _0x3c783c['push'](_0x3c783c['shift']());}catch(_0x47236b){_0x3c783c['push'](_0x3c783c['shift']());}}}(a153_0x6eca,0xd1d9c));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x1700(_0x424a4c,_0x5b3f53){_0x424a4c=_0x424a4c-0x16d;var _0x6eca5f=a153_0x6eca();var _0x17009f=_0x6eca5f[_0x424a4c];return _0x17009f;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a153_0x6eca(){var _0x337886=['8OEHUHX','5662380LWvGYj','20609109RXyvVp','6592575crdSPo','171nsGoXN','695538EbnhuK','742567wGNBYp','66212NnApWl','3547915ZCLKzp'];a153_0x6eca=function(){return _0x337886;};return a153_0x6eca();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a152_0x1aeba3=a152_0x4575;(function(_0x18a822,_0x4224e9){const _0x4798d5=a152_0x4575,_0x140ed8=_0x18a822();while(!![]){try{const _0x3fafa7=-parseInt(_0x4798d5(0x80))/0x1+parseInt(_0x4798d5(0xa4))/0x2+parseInt(_0x4798d5(0xc9))/0x3+-parseInt(_0x4798d5(0xab))/0x4*(parseInt(_0x4798d5(0x9f))/0x5)+-parseInt(_0x4798d5(0xae))/0x6*(parseInt(_0x4798d5(0xc8))/0x7)+-parseInt(_0x4798d5(0xad))/0x8+parseInt(_0x4798d5(0x87))/0x9;if(_0x3fafa7===_0x4224e9)break;else _0x140ed8['push'](_0x140ed8['shift']());}catch(_0x6bcf54){_0x140ed8['push'](_0x140ed8['shift']());}}}(a152_0x5561,0x4e936));import{z}from'zod';export const OperatorTypeSchema=z[a152_0x1aeba3(0x99)](['Equal','Greater',a152_0x1aeba3(0xba),a152_0x1aeba3(0xa7),a152_0x1aeba3(0x93),'In',a152_0x1aeba3(0x86),a152_0x1aeba3(0x81),a152_0x1aeba3(0xb6),a152_0x1aeba3(0x82),'TimeWithinNext','Contain',a152_0x1aeba3(0xaf),'EndWith',a152_0x1aeba3(0xbb)]);export const TimeUnitSchema=z[a152_0x1aeba3(0x99)](['second',a152_0x1aeba3(0xb2),a152_0x1aeba3(0xa5),a152_0x1aeba3(0xc1),a152_0x1aeba3(0xa1),a152_0x1aeba3(0xca),a152_0x1aeba3(0x89)]);export const AggregationTypeSchema=z[a152_0x1aeba3(0x99)]([a152_0x1aeba3(0xb4),'Sum',a152_0x1aeba3(0xa9),a152_0x1aeba3(0x91),'Max',a152_0x1aeba3(0xb3),a152_0x1aeba3(0x8c),a152_0x1aeba3(0xa8)]);const TemporalValueSchema=z[a152_0x1aeba3(0x9c)]([z['object']({'timestamp':z[a152_0x1aeba3(0x85)]()}),z[a152_0x1aeba3(0xb0)]({'last':z[a152_0x1aeba3(0x9c)]([z['number'](),z['record'](z['string'](),z[a152_0x1aeba3(0xbc)]())]),'unit':z[a152_0x1aeba3(0x85)]()})]),OperatorValueSchema=z['union']([z[a152_0x1aeba3(0x85)](),z['number'](),z[a152_0x1aeba3(0x97)](),TemporalValueSchema,z['array'](z[a152_0x1aeba3(0x9c)]([z[a152_0x1aeba3(0x85)](),z['number'](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0x1aeba3(0xc0),a152_0x1aeba3(0x9a),a152_0x1aeba3(0xa7),a152_0x1aeba3(0xba),a152_0x1aeba3(0x93),'In',a152_0x1aeba3(0xcb),a152_0x1aeba3(0xaf),a152_0x1aeba3(0xa2),a152_0x1aeba3(0x81),a152_0x1aeba3(0x82),a152_0x1aeba3(0xa6)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a152_0x1aeba3(0xa6)]);export const OperatorDefSchema=z[a152_0x1aeba3(0xb0)]({'type':OperatorTypeSchema,'not':z[a152_0x1aeba3(0x97)]()[a152_0x1aeba3(0xc5)](),'value':OperatorValueSchema[a152_0x1aeba3(0xc5)](),'min':z[a152_0x1aeba3(0x9c)]([z[a152_0x1aeba3(0xbc)](),z['string'](),TemporalValueSchema])[a152_0x1aeba3(0xc5)](),'max':z[a152_0x1aeba3(0x9c)]([z['number'](),z[a152_0x1aeba3(0x85)](),TemporalValueSchema])[a152_0x1aeba3(0xc5)](),'unit':TimeUnitSchema[a152_0x1aeba3(0xc5)](),'duration':z[a152_0x1aeba3(0xb0)]({'day':z['number']()[a152_0x1aeba3(0xc5)](),'week':z['number']()[a152_0x1aeba3(0xc5)](),'month':z[a152_0x1aeba3(0xbc)]()[a152_0x1aeba3(0xc5)](),'year':z[a152_0x1aeba3(0xbc)]()['optional'](),'hour':z[a152_0x1aeba3(0xbc)]()[a152_0x1aeba3(0xc5)](),'minute':z[a152_0x1aeba3(0xbc)]()[a152_0x1aeba3(0xc5)](),'second':z[a152_0x1aeba3(0xbc)]()[a152_0x1aeba3(0xc5)]()})[a152_0x1aeba3(0xc5)](),'from':z[a152_0x1aeba3(0xb0)]({'last':z[a152_0x1aeba3(0x9c)]([z[a152_0x1aeba3(0xbc)](),z['string']()]),'unit':TimeUnitSchema})[a152_0x1aeba3(0xc5)](),'reverse':z[a152_0x1aeba3(0x97)]()[a152_0x1aeba3(0xc5)]()})[a152_0x1aeba3(0x8f)]((_0x43bcca,_0x4a62d9)=>{const _0xb05a7=a152_0x1aeba3;OPERATORS_REQUIRING_VALUE[_0xb05a7(0x84)](_0x43bcca[_0xb05a7(0xa3)])&&(_0x43bcca['value']===undefined||_0x43bcca['value']===null)&&_0x4a62d9[_0xb05a7(0x90)]({'code':_0xb05a7(0x92),'message':_0xb05a7(0xaa)+_0x43bcca[_0xb05a7(0xa3)]+_0xb05a7(0x94),'path':[_0xb05a7(0x8a)]}),_0x43bcca[_0xb05a7(0xa3)]===_0xb05a7(0x86)&&_0x43bcca['min']===undefined&&_0x43bcca[_0xb05a7(0xb5)]===undefined&&_0x4a62d9['addIssue']({'code':_0xb05a7(0x92),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0xb05a7(0xb1)}}),OPERATORS_REQUIRING_UNIT['has'](_0x43bcca[_0xb05a7(0xa3)])&&_0x43bcca[_0xb05a7(0x8a)]!==undefined&&!_0x43bcca[_0xb05a7(0x96)]&&_0x4a62d9[_0xb05a7(0x90)]({'code':_0xb05a7(0x92),'message':_0xb05a7(0xaa)+_0x43bcca[_0xb05a7(0xa3)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0xb05a7(0x96)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x43bcca[_0xb05a7(0xa3)]==='TimeRange'&&(!_0x43bcca[_0xb05a7(0xc2)]&&_0x4a62d9['addIssue']({'code':_0xb05a7(0x92),'message':_0xb05a7(0x83),'path':[_0xb05a7(0xc2)]}),!_0x43bcca[_0xb05a7(0xc3)]&&_0x4a62d9[_0xb05a7(0x90)]({'code':_0xb05a7(0x92),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0xb05a7(0xc3)]}));});export const ArrayMatchingSchema=z[a152_0x1aeba3(0x9c)]([z[a152_0x1aeba3(0xb7)]('any'),z['literal'](a152_0x1aeba3(0x95)),z['object']({'atLeast':z[a152_0x1aeba3(0xbc)]()}),z['object']({'atMost':z[a152_0x1aeba3(0xbc)]()}),z[a152_0x1aeba3(0xb0)]({'exactly':z[a152_0x1aeba3(0xbc)]()})]);export const AggregationDefSchema=z[a152_0x1aeba3(0xb8)](a152_0x1aeba3(0xa3),[z['object']({'type':z['enum']([a152_0x1aeba3(0xc6),a152_0x1aeba3(0x91),a152_0x1aeba3(0xbf),a152_0x1aeba3(0xa9)]),'column':z[a152_0x1aeba3(0x85)](),'groupingColumns':z[a152_0x1aeba3(0x9d)](z[a152_0x1aeba3(0x85)]())[a152_0x1aeba3(0xc5)]()}),z[a152_0x1aeba3(0xb0)]({'type':z['literal'](a152_0x1aeba3(0xb4)),'groupingColumns':z[a152_0x1aeba3(0x9d)](z['string']())[a152_0x1aeba3(0xc5)]()}),z['object']({'type':z[a152_0x1aeba3(0xb7)](a152_0x1aeba3(0xb3)),'columns':z[a152_0x1aeba3(0x9d)](z['string']())}),z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0x99)]([a152_0x1aeba3(0x8c),a152_0x1aeba3(0xa8)]),'column':z['string'](),'orderColumn':z[a152_0x1aeba3(0x85)](),'groupingColumns':z['array'](z[a152_0x1aeba3(0x85)]())['optional']()})]);export const TimeWindowDefSchema=z[a152_0x1aeba3(0xb0)]({'duration':z[a152_0x1aeba3(0xbc)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a152_0x1aeba3(0x82),a152_0x1aeba3(0xa6),a152_0x1aeba3(0xbb)]);export const FilterColumnConditionDefSchema=z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0xb7)]('Column'),'column':z[a152_0x1aeba3(0x85)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x1aeba3(0xc5)]()})[a152_0x1aeba3(0x8f)]((_0x5e25c8,_0x545df3)=>{const _0x453494=a152_0x1aeba3,_0x390e9a=_0x5e25c8[_0x453494(0xcd)][_0x453494(0xa3)];_0x5e25c8[_0x453494(0xa0)]===_0x453494(0xc4)?!TIMESTAMP_OPERATORS[_0x453494(0x84)](_0x390e9a)&&_0x545df3[_0x453494(0x90)]({'code':_0x453494(0x92),'message':_0x453494(0x8e)+_0x390e9a+'\x27)','path':[_0x453494(0xcd),_0x453494(0xa3)]}):TIMESTAMP_OPERATORS[_0x453494(0x84)](_0x390e9a)&&_0x545df3[_0x453494(0x90)]({'code':_0x453494(0x92),'message':_0x453494(0xaa)+_0x390e9a+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':['operator',_0x453494(0xa3)]});});export const FilterRuleDefSchema=z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0xb7)](a152_0x1aeba3(0xc7)),'conditions':z[a152_0x1aeba3(0x9d)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a152_0x1aeba3(0x8b)](()=>z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0xb7)]('Value'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a152_0x1aeba3(0x97)]()[a152_0x1aeba3(0xc5)](),'aggregation':AggregationDefSchema[a152_0x1aeba3(0xc5)](),'source':z['string']()[a152_0x1aeba3(0xc5)](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a152_0x1aeba3(0xbc)]()['optional']()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0xb7)](a152_0x1aeba3(0xbd)),'attribute':z[a152_0x1aeba3(0x85)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a152_0x1aeba3(0x97)]()[a152_0x1aeba3(0xc5)](),'aggregation':AggregationDefSchema[a152_0x1aeba3(0xc5)](),'source':z['string']()[a152_0x1aeba3(0xc5)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a152_0x1aeba3(0xc5)](),'limit':z['number']()[a152_0x1aeba3(0xc5)]()}));function a152_0x5561(){const _0x2ffc45=['4437384GSUxRO','1062bHDzYe','StartWith','object','MISSING_BETWEEN_BOUNDS','minute','CountDistinct','Count','max','IsNull','literal','discriminatedUnion','include','Less','TimeRange','number','Behavior','Segment\x20name\x20is\x20required','Max','Equal','day','duration','from','timestamp','optional','Sum','And','5033vOAbzT','795288zVYUkY','month','Contain','min','operator','349119pfsbbO','Regexp','TimeWithinPast','TimeRange\x20operator\x20requires\x20\x27duration\x27','has','string','Between','10036026AwPaHk','exclude','year','value','lazy','First','batch','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','superRefine','addIssue','Min','custom','LessEqual','\x27\x20requires\x20a\x20value','all','unit','boolean','funnel_stage','enum','Greater','realtime','union','array','any','2148005tFVgFo','column','week','EndWith','type','804584mQHSGU','hour','TimeWithinNext','GreaterEqual','Last','Average','Operator\x20\x27','4SuQYxb','segment'];a152_0x5561=function(){return _0x2ffc45;};return a152_0x5561();}export const ColumnConditionDefSchema=z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0xb7)]('Column'),'column':z[a152_0x1aeba3(0x85)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a152_0x1aeba3(0x8b)](()=>z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0x99)]([a152_0x1aeba3(0xc7),'Or']),'conditions':z[a152_0x1aeba3(0x9d)](ConditionDefSchema),'description':z['string']()[a152_0x1aeba3(0xc5)]()}));export const SegmentRefConditionDefSchema=z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0x99)]([a152_0x1aeba3(0xb9),a152_0x1aeba3(0x88)]),'segment':z['string']()[a152_0x1aeba3(0xcc)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a152_0x1aeba3(0x8b)](()=>z[a152_0x1aeba3(0x9c)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));function a152_0x4575(_0x599bd6,_0x3dea4c){_0x599bd6=_0x599bd6-0x80;const _0x55618a=a152_0x5561();let _0x4575a8=_0x55618a[_0x599bd6];return _0x4575a8;}export const RuleDefSchema=z[a152_0x1aeba3(0x8b)](()=>z['object']({'type':z[a152_0x1aeba3(0x99)](['And','Or']),'conditions':z[a152_0x1aeba3(0x9d)](ConditionDefSchema),'description':z[a152_0x1aeba3(0x85)]()[a152_0x1aeba3(0xc5)]()}));export const SegmentDefSchema=z[a152_0x1aeba3(0xb0)]({'type':z[a152_0x1aeba3(0xb7)](a152_0x1aeba3(0xac))[a152_0x1aeba3(0xc5)](),'name':z[a152_0x1aeba3(0x85)]()['min'](0x1,a152_0x1aeba3(0xbe)),'description':z['string']()[a152_0x1aeba3(0xc5)](),'folder':z[a152_0x1aeba3(0x85)]()['optional'](),'rule':RuleDefSchema[a152_0x1aeba3(0xc5)](),'kind':z['enum']([a152_0x1aeba3(0x8d),a152_0x1aeba3(0x9b),a152_0x1aeba3(0x98)])[a152_0x1aeba3(0xc5)](),'visible':z[a152_0x1aeba3(0x97)]()[a152_0x1aeba3(0xc5)](),'activations':z[a152_0x1aeba3(0x9d)](z[a152_0x1aeba3(0x9e)]())[a152_0x1aeba3(0xc5)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0x4c9b39=a155_0x582b;(function(_0x45b294,_0x58ed24){const _0x486af2=a155_0x582b,_0x5edbd1=_0x45b294();while(!![]){try{const _0x5c6fa7=parseInt(_0x486af2(0x173))/0x1+-parseInt(_0x486af2(0x171))/0x2+parseInt(_0x486af2(0x179))/0x3*(-parseInt(_0x486af2(0x17b))/0x4)+-parseInt(_0x486af2(0x16e))/0x5+parseInt(_0x486af2(0x16c))/0x6+-parseInt(_0x486af2(0x170))/0x7*(-parseInt(_0x486af2(0x175))/0x8)+parseInt(_0x486af2(0x165))/0x9*(parseInt(_0x486af2(0x164))/0xa);if(_0x5c6fa7===_0x58ed24)break;else _0x5edbd1['push'](_0x5edbd1['shift']());}catch(_0x50bd9e){_0x5edbd1['push'](_0x5edbd1['shift']());}}}(a155_0x451a,0xa5bd8));import{readFileSync}from'fs';import*as a155_0x585de3 from'path';import*as a155_0x43e18e from'yaml';function a155_0x451a(){const _0x535f2c=['segment','warnings','YAML_PARSE_ERROR','valid','push','2237928pFqKBW','YAML\x20parse\x20error:\x20','5755290nnKECa','campaign','35yrkyfw','2199236LvDDMO','object','1098737Qqpojs','error','173776etHIWL','filterType','template','map','6WIzcfP','utf-8','1859288NEmkXF','message','campaign_type','toJSON','basename','not\x20a\x20','type','relative','skipped','journey','10tvatxQ','20509713ZQkwKK','result'];a155_0x451a=function(){return _0x535f2c;};return a155_0x451a();}import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';function a155_0x582b(_0x49fd5d,_0x69a916){_0x49fd5d=_0x49fd5d-0x164;const _0x451a60=a155_0x451a();let _0x582b67=_0x451a60[_0x49fd5d];return _0x582b67;}import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set(['email',a155_0x4c9b39(0x16b)]);export function isJourneyDef(_0x1fff7d){const _0x22e1de=a155_0x4c9b39;return typeof _0x1fff7d===_0x22e1de(0x172)&&_0x1fff7d!==null&&_0x22e1de(0x181)in _0x1fff7d&&_0x1fff7d['type']===_0x22e1de(0x184);}export function isCampaignDef(_0x4208dc){const _0x2ba7bf=a155_0x4c9b39;if(typeof _0x4208dc!=='object'||_0x4208dc===null)return![];const _0x3f1edd=_0x4208dc,_0x434d5c=VALID_CAMPAIGN_TYPES['has'](_0x3f1edd[_0x2ba7bf(0x17d)]);if(_0x3f1edd['type']===_0x2ba7bf(0x16f)&&_0x434d5c)return!![];if(_0x434d5c&&!_0x3f1edd[_0x2ba7bf(0x181)])return!![];return![];}export function isTemplateDef(_0x17c14a){const _0x11315d=a155_0x4c9b39;return typeof _0x17c14a===_0x11315d(0x172)&&_0x17c14a!==null&&'type'in _0x17c14a&&_0x17c14a[_0x11315d(0x181)]===_0x11315d(0x177);}export function isValidationResult(_0x4cbbd9){const _0x4071d1=a155_0x4c9b39;return!(_0x4071d1(0x183)in _0x4cbbd9);}export function createParseErrorResult(_0x36ac9d,_0x21be7,_0x4fe27c,_0xea1b0d,_0x406187=a155_0x4c9b39(0x167)){const _0x548c04=a155_0x4c9b39;return{'filePath':_0x36ac9d,'relativePath':_0x21be7,'source':_0x4fe27c,'result':{'valid':![],'errors':[{'level':_0x548c04(0x174),'path':'','code':_0x548c04(0x169),'message':_0xea1b0d}],'warnings':[]},'fileType':_0x406187};}export function validateYamlFile(_0x1c4e8b,_0x1f0864,_0x29769b={}){const _0x2f0d21=a155_0x4c9b39,_0x13e256=a155_0x585de3[_0x2f0d21(0x182)](_0x1f0864,_0x1c4e8b)||a155_0x585de3[_0x2f0d21(0x17f)](_0x1c4e8b);try{const _0x2b30bb=readFileSync(_0x1c4e8b,_0x2f0d21(0x17a)),_0x35e8d4=a155_0x43e18e['parseDocument'](_0x2b30bb),_0x3e8023=_0x35e8d4[_0x2f0d21(0x17e)]();if(!_0x3e8023)return createParseErrorResult(_0x1c4e8b,_0x13e256,_0x2b30bb,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0xc13159;if(isJourneyDef(_0x3e8023))_0xc13159=_0x2f0d21(0x184);else{if(isCampaignDef(_0x3e8023))_0xc13159=_0x2f0d21(0x16f);else isTemplateDef(_0x3e8023)?_0xc13159=_0x2f0d21(0x177):_0xc13159='segment';}if(_0x29769b['filterType']&&_0xc13159!==_0x29769b[_0x2f0d21(0x176)])return{'filePath':_0x1c4e8b,'relativePath':_0x13e256,'skipped':!![],'reason':_0x2f0d21(0x180)+_0x29769b[_0x2f0d21(0x176)]};const _0x3a59a8={'source':_0x2b30bb,'document':_0x35e8d4};let _0x2565ad;if(_0xc13159==='journey')_0x2565ad=validateJourneyDef(_0x3e8023,_0x3a59a8);else{if(_0xc13159==='campaign')_0x2565ad=validateCampaignDef(_0x3e8023,_0x3a59a8);else _0xc13159==='template'?_0x2565ad=validateTemplateDef(_0x3e8023,_0x3a59a8):_0x2565ad=validateSegmentDef(_0x3e8023,_0x3a59a8);}return{'filePath':_0x1c4e8b,'relativePath':_0x13e256,'source':_0x2b30bb,'result':_0x2565ad,'fileType':_0xc13159};}catch(_0x3c7fae){const _0x1e500b=_0x3c7fae instanceof Error?_0x3c7fae[_0x2f0d21(0x17c)]:String(_0x3c7fae);return createParseErrorResult(_0x1c4e8b,_0x13e256,'',_0x2f0d21(0x16d)+_0x1e500b);}}export function validateYamlFiles(_0x575a74,_0x25bf7a,_0x4f3e24={}){const _0x55b5b0=a155_0x4c9b39;return _0x575a74[_0x55b5b0(0x178)](_0x57e73d=>validateYamlFile(_0x57e73d,_0x25bf7a,_0x4f3e24));}export function calculateSummary(_0x4e2cda){const _0xb1b53c=a155_0x4c9b39;let _0x2a1b12=0x0,_0x5cc08d=0x0,_0x3d0017=0x0,_0x4c22d2=0x0;for(const _0x48d14e of _0x4e2cda){if(!isValidationResult(_0x48d14e)){_0x4c22d2++;continue;}_0x48d14e['result'][_0xb1b53c(0x16a)]?_0x2a1b12++:_0x5cc08d++,_0x3d0017+=_0x48d14e[_0xb1b53c(0x166)][_0xb1b53c(0x168)]['length'];}return{'validCount':_0x2a1b12,'invalidCount':_0x5cc08d,'warningCount':_0x3d0017,'skippedCount':_0x4c22d2,'hasErrors':_0x5cc08d>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x131f98,_0x236d15){const _0x370f0b=a156_0x112c,_0x192035=_0x131f98();while(!![]){try{const _0x50851b=parseInt(_0x370f0b(0x1e3))/0x1+-parseInt(_0x370f0b(0x1f0))/0x2*(-parseInt(_0x370f0b(0x1f3))/0x3)+parseInt(_0x370f0b(0x20a))/0x4*(parseInt(_0x370f0b(0x1fe))/0x5)+parseInt(_0x370f0b(0x1ff))/0x6*(parseInt(_0x370f0b(0x1f6))/0x7)+parseInt(_0x370f0b(0x1fd))/0x8*(parseInt(_0x370f0b(0x1e1))/0x9)+parseInt(_0x370f0b(0x209))/0xa*(-parseInt(_0x370f0b(0x1f7))/0xb)+-parseInt(_0x370f0b(0x207))/0xc;if(_0x50851b===_0x236d15)break;else _0x192035['push'](_0x192035['shift']());}catch(_0x1d99f5){_0x192035['push'](_0x192035['shift']());}}}(a156_0x3271,0x35429));import*as a156_0x2b6dfc from'yaml';import a156_0xe33215 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x3dfd07,_0x2be3c3,_0x2273a1){const _0x2652ee=a156_0x112c;if(!_0x3dfd07||!_0x2be3c3)return undefined;try{let _0x4fa3de=_0x3dfd07[_0x2652ee(0x1fa)](_0x2273a1,!![]),_0x7d422a=[..._0x2273a1];while((!_0x4fa3de||typeof _0x4fa3de!==_0x2652ee(0x1e4)||!(_0x2652ee(0x1f4)in _0x4fa3de)||!_0x4fa3de[_0x2652ee(0x1f4)])&&_0x7d422a[_0x2652ee(0x1f5)]>0x0){_0x7d422a['pop'](),_0x4fa3de=_0x7d422a[_0x2652ee(0x1f5)]>0x0?_0x3dfd07['getIn'](_0x7d422a,!![]):_0x3dfd07[_0x2652ee(0x203)];}if(!_0x4fa3de||typeof _0x4fa3de!==_0x2652ee(0x1e4)||!(_0x2652ee(0x1f4)in _0x4fa3de)||!_0x4fa3de['range'])return undefined;const [_0x322c4a]=_0x4fa3de[_0x2652ee(0x1f4)];return offsetToLocation(_0x2be3c3,_0x322c4a);}catch{return undefined;}}function a156_0x3271(){const _0xde394f=['push','error','map','flatMap','yellow','364456mnVKDM','location','code','6FXmVWA','range','length','510706JOTRWm','845702bzlhSK','cyan','red','getIn','max','join','72aVGvOY','20HqtRwu','24EOsXkA','YAML\x20validation\x20error\x20at\x20\x27','issues','invalid_union','contents','number','warnings','level','9419652GPXzlr','split','10jQDhWh','130780lZKVgP','dim','errors','54081CPDNxf','min','238857qgqmcL','object','toString','line','path','message','data','match'];a156_0x3271=function(){return _0xde394f;};return a156_0x3271();}export function offsetToLocation(_0x1823e1,_0xd71213){const _0x10c93d=a156_0x112c;let _0x7e3211=0x1,_0x351cd9=0x1;for(let _0x48f7ab=0x0;_0x48f7ab<_0xd71213&&_0x48f7ab<_0x1823e1[_0x10c93d(0x1f5)];_0x48f7ab++){_0x1823e1[_0x48f7ab]==='\x0a'?(_0x7e3211++,_0x351cd9=0x1):_0x351cd9++;}return{'line':_0x7e3211,'column':_0x351cd9,'offset':_0xd71213};}export function pathToArray(_0x5b01b1){const _0x567dae=a156_0x112c;if(!_0x5b01b1)return[];return _0x5b01b1[_0x567dae(0x208)]('.')[_0x567dae(0x1ee)](_0x18b944=>{const _0x33a641=_0x567dae,_0x381302=_0x18b944[_0x33a641(0x1ea)](/^(\w+)\[(\d+)\]$/);if(_0x381302)return[_0x381302[0x1],parseInt(_0x381302[0x2],0xa)];return[_0x18b944];});}export function formatZodPath(_0x2b891c){const _0x324925=a156_0x112c;let _0x44e916='';for(const _0x37650c of _0x2b891c){if(typeof _0x37650c===_0x324925(0x204))_0x44e916+='['+_0x37650c+']';else{const _0x18ae4e=String(_0x37650c);_0x44e916+=_0x44e916?'.'+_0x18ae4e:_0x18ae4e;}}return _0x44e916;}function a156_0x112c(_0x3341ad,_0x3c8930){_0x3341ad=_0x3341ad-0x1e1;const _0x3271bb=a156_0x3271();let _0x112c3c=_0x3271bb[_0x3341ad];return _0x112c3c;}export function flattenZodIssues(_0x5b08b1){const _0x48a30b=a156_0x112c,_0x379c13=[];for(const _0x39e172 of _0x5b08b1){if(_0x39e172[_0x48a30b(0x1f2)]===_0x48a30b(0x202)&&_0x48a30b(0x20c)in _0x39e172){const _0x4ad6e7=_0x39e172[_0x48a30b(0x20c)];let _0x4d9bbc=_0x4ad6e7[0x0]||[];for(const _0x2e8875 of _0x4ad6e7){_0x2e8875['length']<_0x4d9bbc[_0x48a30b(0x1f5)]&&(_0x4d9bbc=_0x2e8875);}const _0x349a2c=_0x4d9bbc[_0x48a30b(0x1ed)](_0x419b99=>({..._0x419b99,'path':[..._0x39e172[_0x48a30b(0x1e7)],..._0x419b99['path']]}));_0x379c13['push'](...flattenZodIssues(_0x349a2c));}else _0x379c13[_0x48a30b(0x1eb)](_0x39e172);}return _0x379c13;}export function safeParseYaml(_0x2aacdf,_0x33dcc5){const _0x1fcc83=a156_0x112c,_0x44540e=a156_0x2b6dfc['parse'](_0x2aacdf);if(!_0x44540e||typeof _0x44540e!==_0x1fcc83(0x1e4))throw new Error('Invalid\x20YAML:\x20expected\x20an\x20object');const _0x18d48e=_0x33dcc5['safeParse'](_0x44540e);if(!_0x18d48e['success']){const _0x3d6ac5=_0x18d48e[_0x1fcc83(0x1ec)][_0x1fcc83(0x201)][0x0],_0x4e717d=formatZodPath(_0x3d6ac5['path']);throw new Error(_0x4e717d?_0x1fcc83(0x200)+_0x4e717d+'\x27:\x20'+_0x3d6ac5[_0x1fcc83(0x1e8)]:'YAML\x20validation\x20error:\x20'+_0x3d6ac5['message']);}return _0x18d48e[_0x1fcc83(0x1e9)];}export function formatIssueWithContext(_0x37bc35,_0x307d94,_0x4ceac1){const _0x357542=a156_0x112c,_0x5840e9=[],_0x22ca6f=_0x37bc35['level']===_0x357542(0x1ec),_0x20639e=_0x22ca6f?a156_0xe33215[_0x357542(0x1f9)]:a156_0xe33215[_0x357542(0x1ef)],_0x306045=_0x22ca6f?a156_0xe33215[_0x357542(0x1f9)]:a156_0xe33215[_0x357542(0x1ef)],_0x28e3e9=_0x4ceac1?a156_0xe33215[_0x357542(0x1f8)](_0x4ceac1+':'):'';if(_0x37bc35['location']){const _0x2f03dd=a156_0xe33215[_0x357542(0x1f8)](_0x37bc35['location'][_0x357542(0x1e6)]+':'+_0x37bc35[_0x357542(0x1f1)]['column']);_0x5840e9['push'](''+_0x28e3e9+_0x2f03dd+':\x20'+_0x20639e(_0x37bc35[_0x357542(0x206)])+'\x20'+_0x306045('['+_0x37bc35[_0x357542(0x1f2)]+']'));}else _0x5840e9[_0x357542(0x1eb)](''+_0x28e3e9+a156_0xe33215[_0x357542(0x20b)](_0x37bc35['path'])+':\x20'+_0x20639e(_0x37bc35[_0x357542(0x206)])+'\x20'+_0x306045('['+_0x37bc35[_0x357542(0x1f2)]+']'));_0x5840e9[_0x357542(0x1eb)](_0x37bc35['message']);if(_0x37bc35['location']&&_0x307d94){const _0x5d6be9=_0x307d94[_0x357542(0x208)]('\x0a'),{line:_0x2c7363,column:_0x247abe}=_0x37bc35['location'],_0x48eaf0=Math[_0x357542(0x1fb)](0x1,_0x2c7363-0x1),_0x33f86a=Math[_0x357542(0x1e2)](_0x5d6be9[_0x357542(0x1f5)],_0x2c7363+0x1);_0x5840e9[_0x357542(0x1eb)]('');for(let _0xda5323=_0x48eaf0;_0xda5323<=_0x33f86a;_0xda5323++){const _0x587c2e=_0x5d6be9[_0xda5323-0x1]||'',_0x1427c1=a156_0xe33215[_0x357542(0x20b)](_0xda5323[_0x357542(0x1e5)]()['padStart'](0x4)),_0x39d7ee=a156_0xe33215[_0x357542(0x20b)]('\x20|\x20');if(_0xda5323===_0x2c7363){_0x5840e9[_0x357542(0x1eb)]('\x20\x20'+_0x1427c1+_0x39d7ee+_0x20639e(_0x587c2e));const _0x191f8a='\x20'['repeat'](0x4+0x3+_0x247abe-0x1);_0x5840e9[_0x357542(0x1eb)]('\x20\x20'+_0x191f8a+_0x20639e('^'));}else _0x5840e9['push']('\x20\x20'+_0x1427c1+_0x39d7ee+a156_0xe33215[_0x357542(0x20b)](_0x587c2e));}}return _0x5840e9[_0x357542(0x1fc)]('\x0a');}export function formatValidationResult(_0x1da019,_0xce7640,_0xe0688f){const _0x1f1cac=a156_0x112c,_0x413493=[];for(const _0x502b1e of _0x1da019[_0x1f1cac(0x20c)]){_0x413493[_0x1f1cac(0x1eb)](formatIssueWithContext(_0x502b1e,_0xce7640,_0xe0688f)),_0x413493[_0x1f1cac(0x1eb)]('');}for(const _0x3ff6f5 of _0x1da019[_0x1f1cac(0x205)]){_0x413493[_0x1f1cac(0x1eb)](formatIssueWithContext(_0x3ff6f5,_0xce7640,_0xe0688f)),_0x413493[_0x1f1cac(0x1eb)]('');}return _0x413493[_0x1f1cac(0x1fc)]('\x0a');}
|