@treasuredata/tdx 2026.3.55 → 2026.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.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/tools/work-create-item.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/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.d.ts.map +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/file-discovery.js.map +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.d.ts.map +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js.map +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.d.ts.map +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/index.js.map +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +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
|
-
const
|
|
1
|
+
const a158_0x5e1fb0=a158_0x31c3;(function(_0x380da3,_0x4e1474){const _0x7fceb6=a158_0x31c3,_0x27eef3=_0x380da3();while(!![]){try{const _0x56d115=-parseInt(_0x7fceb6(0x10a))/0x1*(-parseInt(_0x7fceb6(0x116))/0x2)+-parseInt(_0x7fceb6(0x112))/0x3*(parseInt(_0x7fceb6(0x119))/0x4)+parseInt(_0x7fceb6(0x10c))/0x5+parseInt(_0x7fceb6(0x109))/0x6*(-parseInt(_0x7fceb6(0x110))/0x7)+parseInt(_0x7fceb6(0x104))/0x8+parseInt(_0x7fceb6(0x11b))/0x9+-parseInt(_0x7fceb6(0x111))/0xa*(-parseInt(_0x7fceb6(0x115))/0xb);if(_0x56d115===_0x4e1474)break;else _0x27eef3['push'](_0x27eef3['shift']());}catch(_0x4659ff){_0x27eef3['push'](_0x27eef3['shift']());}}}(a158_0x45e7,0x54d11));import{existsSync,readFileSync}from'fs';import a158_0x4fd49b from'path';const TDX_CONFIG_FILE=a158_0x5e1fb0(0x10d),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x3e4587=process[a158_0x5e1fb0(0x113)]()){const _0x373e90=a158_0x5e1fb0;let _0x118535=a158_0x4fd49b[_0x373e90(0x10f)](_0x3e4587);const _0x5edcb6=a158_0x4fd49b[_0x373e90(0x103)](_0x118535)[_0x373e90(0x106)];while(_0x118535!==_0x5edcb6){const _0x4a3fb3=a158_0x4fd49b[_0x373e90(0x108)](_0x118535,TDX_CONFIG_FILE);if(existsSync(_0x4a3fb3))return _0x4a3fb3;_0x118535=a158_0x4fd49b[_0x373e90(0x11e)](_0x118535);}return null;}export function loadTdxConfig(_0x440f2c){const _0x4b0a1b=a158_0x5e1fb0,_0x36734e=readFileSync(_0x440f2c,_0x4b0a1b(0x105));let _0x66895e;try{_0x66895e=JSON[_0x4b0a1b(0x103)](_0x36734e);}catch{throw new Error(_0x4b0a1b(0x11a)+_0x440f2c);}if(!_0x66895e||typeof _0x66895e!=='object')throw new Error(_0x4b0a1b(0x10b));const _0x5921da=_0x66895e,_0x18d678=_0x5921da[_0x4b0a1b(0x11f)]&&typeof _0x5921da[_0x4b0a1b(0x11f)]==='string',_0x17d52d=_0x5921da[_0x4b0a1b(0x11c)]&&typeof _0x5921da[_0x4b0a1b(0x11c)]===_0x4b0a1b(0x11d);if(!_0x18d678&&!_0x17d52d)throw new Error(_0x4b0a1b(0x117));const _0x540cf0={};return _0x18d678&&(_0x540cf0['parent_segment']=_0x5921da['parent_segment']),_0x17d52d&&(_0x540cf0['engage_workspace']=_0x5921da[_0x4b0a1b(0x11c)]),_0x540cf0;}function a158_0x45e7(){const _0x4a2cc7=['utf-8','root','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','join','1218XOSxvN','306JIfDXz','Invalid\x20tdx.json:\x20expected\x20object','440775RfIHGf','tdx.json','replace','resolve','16086afTnIq','130ElpuhN','18bdZJUo','cwd','startsWith','130229JlTBRL','784RUzFLm','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','stringify','391604NRkSwV','Invalid\x20JSON\x20in\x20','5368752gRdCFc','engage_workspace','string','dirname','parent_segment','parse','3542136QmlBqR'];a158_0x45e7=function(){return _0x4a2cc7;};return a158_0x45e7();}export function findTdxConfig(_0x35ec62=process[a158_0x5e1fb0(0x113)]()){const _0x636f68=a158_0x5e1fb0,_0xd8496=findTdxConfigPath(_0x35ec62);if(!_0xd8496)throw new Error(_0x636f68(0x107));const _0x47f1cb=loadTdxConfig(_0xd8496),_0x2b74a8=a158_0x4fd49b['dirname'](_0xd8496);return{'config':_0x47f1cb,'configPath':_0xd8496,'configDir':_0x2b74a8};}export function tryFindTdxConfig(_0x2e2068){try{return findTdxConfig(_0x2e2068);}catch{return null;}}export function getSegmentRootDir(_0x300944,_0x3a19e=process[a158_0x5e1fb0(0x113)]()){return a158_0x4fd49b['join'](_0x3a19e,SEGMENTS_DIR,_0x300944);}export function getTdxConfigPath(_0x480f40,_0x2592c3=process[a158_0x5e1fb0(0x113)]()){const _0x166eee=a158_0x5e1fb0;return a158_0x4fd49b[_0x166eee(0x108)](getSegmentRootDir(_0x480f40,_0x2592c3),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x2c7df1,_0x4c72e4){const _0x5a669c=a158_0x5e1fb0,_0x191c38=a158_0x4fd49b[_0x5a669c(0x10f)](_0x2c7df1),_0x4e87c6=a158_0x4fd49b['relative'](_0x4c72e4,_0x191c38);if(_0x4e87c6[_0x5a669c(0x114)]('..'))return'';return _0x4e87c6;}export function localPathToTdFolderPath(_0x1d8105){const _0x27152f=a158_0x5e1fb0,_0xf57c17=a158_0x4fd49b['dirname'](_0x1d8105);if(_0xf57c17==='.'||_0xf57c17==='')return'';return _0xf57c17[_0x27152f(0x10e)](/\\/g,'/');}function a158_0x31c3(_0x55e878,_0x1ab161){_0x55e878=_0x55e878-0x103;const _0x45e74c=a158_0x45e7();let _0x31c341=_0x45e74c[_0x55e878];return _0x31c341;}export function tdFolderPathToLocalPath(_0x406ae4,_0x1e7c45){const _0x4b8e2d=a158_0x5e1fb0;if(!_0x406ae4)return _0x1e7c45;return a158_0x4fd49b[_0x4b8e2d(0x108)](_0x1e7c45,_0x406ae4);}export function createTdxConfigContent(_0x37b3ea){const _0x4ea139=a158_0x5e1fb0,_0x2fa553={'parent_segment':_0x37b3ea};return JSON[_0x4ea139(0x118)](_0x2fa553,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x2d3888){const _0x1b8e9a=a158_0x5e1fb0,_0x497cec={'engage_workspace':_0x2d3888};return JSON[_0x1b8e9a(0x118)](_0x497cec,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a159_0x1bb815=a159_0x4d0f;function a159_0x1203(){const _0x41483d=['none','optional','11eWAaGk','69656kJFSjS','16209MhNnyX','record','asc','nullable','weekly','min','7hogSsJ','object','array','daily','All','enum','Last','monthly','75749DRfczy','boolean','clear','string','masked','minutes_interval','desc','3954102zejHJs','once','Top-N','rows','number','2664bnBPov','48561QrvYhj','minute','day','12124730CcJImG','onFailure','cron','First','cols','onSuccess','6LLoWfX','hourly','Connection\x20name\x20is\x20required','11579976JfmNCn','150YkjCWq'];a159_0x1203=function(){return _0x41483d;};return a159_0x1203();}(function(_0x5c311b,_0x20cb63){const _0x17a8b7=a159_0x4d0f,_0x27d404=_0x5c311b();while(!![]){try{const _0x319359=-parseInt(_0x17a8b7(0x112))/0x1+parseInt(_0x17a8b7(0xfb))/0x2*(-parseInt(_0x17a8b7(0x11f))/0x3)+-parseInt(_0x17a8b7(0x103))/0x4*(parseInt(_0x17a8b7(0xff))/0x5)+parseInt(_0x17a8b7(0x119))/0x6*(parseInt(_0x17a8b7(0x10a))/0x7)+-parseInt(_0x17a8b7(0x11e))/0x8*(-parseInt(_0x17a8b7(0x104))/0x9)+parseInt(_0x17a8b7(0x122))/0xa*(parseInt(_0x17a8b7(0x102))/0xb)+-parseInt(_0x17a8b7(0xfe))/0xc;if(_0x319359===_0x20cb63)break;else _0x27d404['push'](_0x27d404['shift']());}catch(_0x4b74ee){_0x27d404['push'](_0x27d404['shift']());}}}(a159_0x1203,0xd1d67));import{z}from'zod';export const ScheduleTypeSchema=z['enum']([a159_0x1bb815(0x100),a159_0x1bb815(0xfc),a159_0x1bb815(0x10d),a159_0x1bb815(0x108),a159_0x1bb815(0x111),a159_0x1bb815(0x124),a159_0x1bb815(0x117)]);export const RepeatUnitSchema=z['enum']([a159_0x1bb815(0x120),'hour',a159_0x1bb815(0x121),'week','month',a159_0x1bb815(0x11a),'none']);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a159_0x1bb815(0x101)](),'repeat_frequency':z[a159_0x1bb815(0x11d)]()['optional'](),'repeat_sub_frequency':z[a159_0x1bb815(0x10c)](z[a159_0x1bb815(0x11d)]())[a159_0x1bb815(0x101)](),'start_at':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x107)]()[a159_0x1bb815(0x101)](),'end_on':z[a159_0x1bb815(0x115)]()['nullable']()[a159_0x1bb815(0x101)](),'timezone':z[a159_0x1bb815(0x115)]()['optional']()});function a159_0x4d0f(_0x191778,_0x4ef0ac){_0x191778=_0x191778-0xfa;const _0x1203c6=a159_0x1203();let _0x4d0fbf=_0x1203c6[_0x191778];return _0x4d0fbf;}export const NotificationDefSchema=z[a159_0x1bb815(0x10b)]({'notify_on':z[a159_0x1bb815(0x10c)](z[a159_0x1bb815(0x10f)]([a159_0x1bb815(0xfa),a159_0x1bb815(0x123)]))['optional'](),'email_recipients':z[a159_0x1bb815(0x10c)](z[a159_0x1bb815(0x115)]())[a159_0x1bb815(0x101)]()});export const ActivationColumnDefSchema=z['union']([z[a159_0x1bb815(0x115)](),z['object']({'name':z[a159_0x1bb815(0x115)](),'type':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x101)](),'visibility':z[a159_0x1bb815(0x10f)](['clear',a159_0x1bb815(0x116)])[a159_0x1bb815(0x101)]()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a159_0x1bb815(0x10c)](z['object']({'name':z[a159_0x1bb815(0x115)](),'type':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x101)](),'visibility':z[a159_0x1bb815(0x10f)]([a159_0x1bb815(0x114),a159_0x1bb815(0x116)])[a159_0x1bb815(0x101)]()}))[a159_0x1bb815(0x101)](),'behavior_table':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x101)](),'join_row':z[a159_0x1bb815(0x11d)]()[a159_0x1bb815(0x107)]()[a159_0x1bb815(0x101)](),'join_strategy':z[a159_0x1bb815(0x10f)]([a159_0x1bb815(0x10e),a159_0x1bb815(0x125),a159_0x1bb815(0x110),a159_0x1bb815(0x11b)])[a159_0x1bb815(0x101)](),'formatting':z[a159_0x1bb815(0x10f)]([a159_0x1bb815(0x11c),a159_0x1bb815(0x126)])[a159_0x1bb815(0x101)](),'order_by':z[a159_0x1bb815(0x10c)](z['object']({'key':z[a159_0x1bb815(0x115)](),'order':z[a159_0x1bb815(0x10f)]([a159_0x1bb815(0x106),a159_0x1bb815(0x118)])}))[a159_0x1bb815(0x101)]()});export const ActivationDefSchema=z[a159_0x1bb815(0x10b)]({'name':z['string']()[a159_0x1bb815(0x109)](0x1,'Activation\x20name\x20is\x20required'),'description':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x101)](),'connection':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x109)](0x1,a159_0x1bb815(0xfd)),'all_columns':z[a159_0x1bb815(0x113)]()[a159_0x1bb815(0x101)](),'columns':z[a159_0x1bb815(0x10c)](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a159_0x1bb815(0x101)](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a159_0x1bb815(0x105)](z[a159_0x1bb815(0x115)](),z['unknown']())[a159_0x1bb815(0x101)](),'activation_template_id':z['string']()['nullable']()['optional'](),'behavior':ActivationBehaviorDefSchema[a159_0x1bb815(0x107)]()['optional'](),'run_after_journey_refresh':z[a159_0x1bb815(0x113)]()[a159_0x1bb815(0x101)](),'nested_workflow_project_name':z[a159_0x1bb815(0x115)]()[a159_0x1bb815(0x101)](),'nested_workflow_name':z[a159_0x1bb815(0x115)]()['optional'](),'lock_enabled':z[a159_0x1bb815(0x113)]()[a159_0x1bb815(0x101)]()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa49fc5,_0xa17145){var _0x29fd86=a160_0x31f5,_0x56c3d7=_0xa49fc5();while(!![]){try{var _0x442d65=parseInt(_0x29fd86(0x138))/0x1+parseInt(_0x29fd86(0x132))/0x2*(-parseInt(_0x29fd86(0x130))/0x3)+-parseInt(_0x29fd86(0x133))/0x4+parseInt(_0x29fd86(0x139))/0x5+-parseInt(_0x29fd86(0x137))/0x6*(parseInt(_0x29fd86(0x134))/0x7)+parseInt(_0x29fd86(0x135))/0x8+parseInt(_0x29fd86(0x136))/0x9*(parseInt(_0x29fd86(0x131))/0xa);if(_0x442d65===_0xa17145)break;else _0x56c3d7['push'](_0x56c3d7['shift']());}catch(_0x123e16){_0x56c3d7['push'](_0x56c3d7['shift']());}}}(a160_0x61aa,0xbe6cd));function a160_0x31f5(_0x1c55c2,_0x1f8858){_0x1c55c2=_0x1c55c2-0x130;var _0x61aae0=a160_0x61aa();var _0x31f511=_0x61aae0[_0x1c55c2];return _0x31f511;}function a160_0x61aa(){var _0x351c7e=['2405520kTAKrD','11980620pZGPpm','714hiWSxI','313925EhSjCF','6612355ieStgJ','199497dFyZNX','10LgBZho','26mHdPjE','2492508HzZpNr','58863LdYFon'];a160_0x61aa=function(){return _0x351c7e;};return a160_0x61aa();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a161_0x3be2e1=a161_0x5e81;(function(_0x36d51f,_0x17fef2){const _0x1080ad=a161_0x5e81,_0xd7fcb=_0x36d51f();while(!![]){try{const _0x44b0c7=parseInt(_0x1080ad(0x9d))/0x1*(-parseInt(_0x1080ad(0x94))/0x2)+-parseInt(_0x1080ad(0xaf))/0x3*(parseInt(_0x1080ad(0x99))/0x4)+-parseInt(_0x1080ad(0x90))/0x5+-parseInt(_0x1080ad(0x9a))/0x6+parseInt(_0x1080ad(0x9b))/0x7*(-parseInt(_0x1080ad(0xb2))/0x8)+parseInt(_0x1080ad(0xb6))/0x9*(-parseInt(_0x1080ad(0xaa))/0xa)+parseInt(_0x1080ad(0xb3))/0xb;if(_0x44b0c7===_0x17fef2)break;else _0xd7fcb['push'](_0xd7fcb['shift']());}catch(_0x5431d4){_0xd7fcb['push'](_0xd7fcb['shift']());}}}(a161_0x4cc8,0x619e1));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x3be2e1(0x9c)]([a161_0x3be2e1(0xb9),a161_0x3be2e1(0xa0),a161_0x3be2e1(0x98)]);export const ReentryModeTypeSchema=z['enum'](['no_reentry','reentry_unless_goal_achieved',a161_0x3be2e1(0x9e)]);function a161_0x4cc8(){const _0x232831=['54yCUQtc','isArray','type','draft','decision_point','ab_test','541720wMnKrF','journey','object','lazy','14gaAUts','jump','merge','string','launched','24cyMoTQ','3507762ACrxgL','1631EOITfo','enum','97915mOPJiG','reentry_always','end','simulation','journeys','wait','Journey\x20name\x20is\x20required','versions','week','refine','stages','boolean','filter','1134130YAufIE','optional','array','activation','literal','112452tcbPHW','record','passthrough','7472NImpdj','31913431vtJbZp','number','length'];a161_0x4cc8=function(){return _0x232831;};return a161_0x4cc8();}export const WaitUnitTypeSchema=z['enum'](['day',a161_0x3be2e1(0xa5)]);export const StepTypeValueSchema=z['enum']([a161_0x3be2e1(0xa2),a161_0x3be2e1(0xad),a161_0x3be2e1(0xba),'ab_test',a161_0x3be2e1(0x96),a161_0x3be2e1(0x95),a161_0x3be2e1(0x9f)]);function a161_0x5e81(_0x5e522a,_0x227bc9){_0x5e522a=_0x5e522a-0x90;const _0x4cc869=a161_0x4cc8();let _0x5e810b=_0x4cc869[_0x5e522a];return _0x5e810b;}export const EmbeddedSegmentDefSchema=z[a161_0x3be2e1(0x92)]({'description':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x3be2e1(0x92)]({'journey':z[a161_0x3be2e1(0x97)](),'stage':z['string'](),'bundle_id':z['string']()[a161_0x3be2e1(0xab)]()});export const CriteriaDefSchema=z['object']({'name':z['string'](),'description':z[a161_0x3be2e1(0x97)]()['optional'](),'segment':z['string'](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a161_0x3be2e1(0xb4)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)]()}),WaitConditionDefSchema=z[a161_0x3be2e1(0x92)]({'segment':z[a161_0x3be2e1(0x97)](),'next':z['string']()['optional'](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a161_0x3be2e1(0x92)]({'duration':z[a161_0x3be2e1(0xb4)]()['optional'](),'unit':WaitUnitTypeSchema[a161_0x3be2e1(0xab)](),'wait_until':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z['array'](z['string']())[a161_0x3be2e1(0xab)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'next':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)]()},WaitStepDefSchema=z[a161_0x3be2e1(0x92)]({...StepBaseFields,'type':z['literal']('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a161_0x3be2e1(0x97)]()}),ActivationStepDefSchema=z[a161_0x3be2e1(0x92)]({...StepBaseFields,'type':z[a161_0x3be2e1(0xae)](a161_0x3be2e1(0xad)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x3be2e1(0x92)]({'name':z[a161_0x3be2e1(0x97)](),'segment':z[a161_0x3be2e1(0x97)]()['optional'](),'segment_id':z[a161_0x3be2e1(0x97)]()['optional'](),'excluded':z[a161_0x3be2e1(0xa8)]()[a161_0x3be2e1(0xab)](),'next':z['string']()['optional']()}),DecisionPointStepParamsDefSchema=z[a161_0x3be2e1(0x92)]({'branches':z[a161_0x3be2e1(0xac)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x3be2e1(0x92)]({...StepBaseFields,'type':z[a161_0x3be2e1(0xae)](a161_0x3be2e1(0xba)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z['object']({'id':z['string']()[a161_0x3be2e1(0xab)](),'name':z[a161_0x3be2e1(0x97)](),'percentage':z[a161_0x3be2e1(0xb4)](),'next':z[a161_0x3be2e1(0x97)]()['optional']()}),AbTestStepParamsDefSchema=z[a161_0x3be2e1(0x92)]({'variants':z[a161_0x3be2e1(0xac)](AbTestVariantDefSchema),'unique_id':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'customized_split':z[a161_0x3be2e1(0xa8)]()[a161_0x3be2e1(0xab)]()}),AbTestStepDefSchema=z[a161_0x3be2e1(0x92)]({...StepBaseFields,'type':z[a161_0x3be2e1(0xae)](a161_0x3be2e1(0xbb)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x3be2e1(0x92)]({...StepBaseFields,'type':z['literal']('merge')}),JumpStepParamsDefSchema=z[a161_0x3be2e1(0x92)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3be2e1(0xae)]('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3be2e1(0xae)](a161_0x3be2e1(0x9f))})[a161_0x3be2e1(0xb1)]();export const StepDefSchema=z['discriminatedUnion'](a161_0x3be2e1(0xb8),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x3be2e1(0x92)]({'name':z[a161_0x3be2e1(0x97)](),'description':z[a161_0x3be2e1(0x97)]()['optional'](),'id':z[a161_0x3be2e1(0x97)]()['optional'](),'entry_criteria':CriteriaDefSchema[a161_0x3be2e1(0xab)](),'exit_criteria':z['array'](CriteriaDefSchema)[a161_0x3be2e1(0xab)](),'milestone':CriteriaDefSchema[a161_0x3be2e1(0xab)](),'root_step':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'steps':z[a161_0x3be2e1(0xac)](StepDefSchema)[a161_0x3be2e1(0xab)]()});export const JourneyEntryDefSchema=z[a161_0x3be2e1(0x92)]({'name':z['string']()[a161_0x3be2e1(0xab)](),'version':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'state':JourneyStateTypeSchema[a161_0x3be2e1(0xab)](),'latest':z['boolean']()[a161_0x3be2e1(0xab)](),'stages':z[a161_0x3be2e1(0xac)](StageDefSchema),'id':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'version_number':z['number']()['optional'](),'goal':CriteriaDefSchema[a161_0x3be2e1(0xab)](),'reentry':ReentryModeTypeSchema[a161_0x3be2e1(0xab)]()});export const JourneyDefSchema=z[a161_0x3be2e1(0x93)](()=>z[a161_0x3be2e1(0x92)]({'type':z[a161_0x3be2e1(0xae)](a161_0x3be2e1(0x91)),'name':z['string']()['min'](0x1,a161_0x3be2e1(0xa3)),'description':z['string']()['optional'](),'bundle_id':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'bundle_name':z[a161_0x3be2e1(0x97)]()[a161_0x3be2e1(0xab)](),'folder_id':z[a161_0x3be2e1(0x97)]()['optional'](),'reentry':ReentryModeTypeSchema[a161_0x3be2e1(0xab)](),'allow_reentry':z[a161_0x3be2e1(0xa8)]()[a161_0x3be2e1(0xab)](),'goal':CriteriaDefSchema['optional'](),'id':z['string']()[a161_0x3be2e1(0xab)](),'version':z[a161_0x3be2e1(0x97)]()['optional'](),'version_number':z[a161_0x3be2e1(0xb4)]()[a161_0x3be2e1(0xab)](),'stages':z['array'](StageDefSchema)[a161_0x3be2e1(0xab)](),'versions':z[a161_0x3be2e1(0xac)](JourneyEntryDefSchema)[a161_0x3be2e1(0xab)](),'journeys':z['array'](JourneyEntryDefSchema)[a161_0x3be2e1(0xab)](),'segments':z[a161_0x3be2e1(0xb0)](z['string'](),EmbeddedSegmentDefSchema)['optional'](),'activations':z['record'](z[a161_0x3be2e1(0x97)](),ActivationDefSchema)[a161_0x3be2e1(0xab)]()})[a161_0x3be2e1(0xa6)](_0x5b439d=>{const _0x5bceee=a161_0x3be2e1,_0x55292=[_0x5b439d[_0x5bceee(0xa1)],_0x5b439d[_0x5bceee(0xa7)],_0x5b439d[_0x5bceee(0xa4)]][_0x5bceee(0xa9)](_0x4d9230=>Array[_0x5bceee(0xb7)](_0x4d9230)&&_0x4d9230[_0x5bceee(0xb5)]>0x0)[_0x5bceee(0xb5)];return _0x55292===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 a163_0x2b8b(_0x3e52d3,_0x38a1ce){_0x3e52d3=_0x3e52d3-0xad;var _0x5c2220=a163_0x5c22();var _0x2b8bf4=_0x5c2220[_0x3e52d3];return _0x2b8bf4;}(function(_0x37f883,_0x3a0680){var _0x9a831a=a163_0x2b8b,_0x11dd76=_0x37f883();while(!![]){try{var _0x4c7c55=parseInt(_0x9a831a(0xae))/0x1*(parseInt(_0x9a831a(0xb1))/0x2)+-parseInt(_0x9a831a(0xb5))/0x3*(-parseInt(_0x9a831a(0xaf))/0x4)+parseInt(_0x9a831a(0xb3))/0x5+parseInt(_0x9a831a(0xb2))/0x6+parseInt(_0x9a831a(0xb7))/0x7+-parseInt(_0x9a831a(0xad))/0x8*(parseInt(_0x9a831a(0xb0))/0x9)+-parseInt(_0x9a831a(0xb4))/0xa*(parseInt(_0x9a831a(0xb6))/0xb);if(_0x4c7c55===_0x3a0680)break;else _0x11dd76['push'](_0x11dd76['shift']());}catch(_0x128bed){_0x11dd76['push'](_0x11dd76['shift']());}}}(a163_0x5c22,0x3135e));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x5c22(){var _0x4dc0fc=['2tPmjQq','1724mJIsQX','9UnOZGa','105686JAQSdE','1286694ZVAfrf','637535wRxxwy','325790kzafIY','1494OIMoTg','187LigIZp','2273642CxLoRZ','1853416BlLNUA'];a163_0x5c22=function(){return _0x4dc0fc;};return a163_0x5c22();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a164_0x27cfbf=a164_0xff1f;(function(_0x1a0f76,_0x3c4d7a){const _0x5c7584=a164_0xff1f,_0x1857cd=_0x1a0f76();while(!![]){try{const _0x25bcf2=parseInt(_0x5c7584(0xfa))/0x1*(-parseInt(_0x5c7584(0xea))/0x2)+parseInt(_0x5c7584(0xe4))/0x3*(-parseInt(_0x5c7584(0xfc))/0x4)+-parseInt(_0x5c7584(0x126))/0x5*(-parseInt(_0x5c7584(0xff))/0x6)+-parseInt(_0x5c7584(0x124))/0x7+parseInt(_0x5c7584(0xed))/0x8+-parseInt(_0x5c7584(0x104))/0x9+-parseInt(_0x5c7584(0xf9))/0xa*(-parseInt(_0x5c7584(0xeb))/0xb);if(_0x25bcf2===_0x3c4d7a)break;else _0x1857cd['push'](_0x1857cd['shift']());}catch(_0x53ea64){_0x1857cd['push'](_0x1857cd['shift']());}}}(a164_0x5934,0x68312));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0xe7),'Greater',a164_0x27cfbf(0x133),a164_0x27cfbf(0x119),a164_0x27cfbf(0x103),'In',a164_0x27cfbf(0x117),a164_0x27cfbf(0x12d),a164_0x27cfbf(0x113),a164_0x27cfbf(0xf7),a164_0x27cfbf(0xf5),'Contain',a164_0x27cfbf(0x11b),a164_0x27cfbf(0x108),a164_0x27cfbf(0x102)]);export const TimeUnitSchema=z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0xf0),a164_0x27cfbf(0x127),a164_0x27cfbf(0xe3),a164_0x27cfbf(0x116),'week',a164_0x27cfbf(0xfe),a164_0x27cfbf(0xef)]);export const AggregationTypeSchema=z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x12c),'Sum',a164_0x27cfbf(0x11d),a164_0x27cfbf(0xf6),a164_0x27cfbf(0xec),a164_0x27cfbf(0xf4),'First',a164_0x27cfbf(0x134)]);function a164_0x5934(){const _0x2ab126=['Regexp','MISSING_TIME_UNIT','has','record','Greater','duration','Less','Last','hour','120057rtfzAN','Operator\x20\x27','\x27\x20requires\x20a\x20value','Equal','value','enum','1004270sZoZOy','11kExghp','Max','1456296HyaotG','First','year','second','timestamp','min','column','CountDistinct','TimeWithinNext','Min','TimeWithinPast','funnel_stage','17124230ZihWta','1PibOCW','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','4HYVtoT','Value','month','1284ZNxYWm','And','TimeRange\x20operator\x20requires\x20\x27from\x27','TimeRange','LessEqual','7072263jkJnZu','string','MISSING_BETWEEN_BOUNDS','array','EndWith','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Behavior','Segment\x20reference\x20must\x20not\x20be\x20empty','realtime','Column','literal','segment','custom','TimeRange\x20operator\x20requires\x20\x27duration\x27','batch','IsNull','boolean','addIssue','day','Between','max','GreaterEqual','unit','StartWith','number','Average','union','superRefine','optional','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Sum','operator','2736755vZiqZl','lazy','5870qXWwqb','minute','any','from','type','object','Count'];a164_0x5934=function(){return _0x2ab126;};return a164_0x5934();}const TemporalValueSchema=z[a164_0x27cfbf(0x11e)]([z['object']({'timestamp':z['string']()}),z[a164_0x27cfbf(0x12b)]({'last':z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x130)](z[a164_0x27cfbf(0x105)](),z['number']())]),'unit':z[a164_0x27cfbf(0x105)]()})]),OperatorValueSchema=z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x105)](),z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x114)](),TemporalValueSchema,z[a164_0x27cfbf(0x107)](z['union']([z[a164_0x27cfbf(0x105)](),z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x114)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x27cfbf(0xe7),a164_0x27cfbf(0x131),a164_0x27cfbf(0x119),a164_0x27cfbf(0x133),a164_0x27cfbf(0x103),'In','Contain',a164_0x27cfbf(0x11b),a164_0x27cfbf(0x108),a164_0x27cfbf(0x12d),a164_0x27cfbf(0xf7),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set([a164_0x27cfbf(0xf7),'TimeWithinNext']);export const OperatorDefSchema=z[a164_0x27cfbf(0x12b)]({'type':OperatorTypeSchema,'not':z[a164_0x27cfbf(0x114)]()[a164_0x27cfbf(0x120)](),'value':OperatorValueSchema[a164_0x27cfbf(0x120)](),'min':z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x105)](),TemporalValueSchema])['optional'](),'max':z['union']([z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x105)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a164_0x27cfbf(0x120)](),'duration':z[a164_0x27cfbf(0x12b)]({'day':z[a164_0x27cfbf(0x11c)]()[a164_0x27cfbf(0x120)](),'week':z[a164_0x27cfbf(0x11c)]()[a164_0x27cfbf(0x120)](),'month':z['number']()[a164_0x27cfbf(0x120)](),'year':z['number']()['optional'](),'hour':z[a164_0x27cfbf(0x11c)]()['optional'](),'minute':z[a164_0x27cfbf(0x11c)]()[a164_0x27cfbf(0x120)](),'second':z['number']()['optional']()})[a164_0x27cfbf(0x120)](),'from':z[a164_0x27cfbf(0x12b)]({'last':z[a164_0x27cfbf(0x11e)]([z['number'](),z[a164_0x27cfbf(0x105)]()]),'unit':TimeUnitSchema})[a164_0x27cfbf(0x120)](),'reverse':z[a164_0x27cfbf(0x114)]()['optional']()})[a164_0x27cfbf(0x11f)]((_0x34434e,_0x148f57)=>{const _0x256047=a164_0x27cfbf;OPERATORS_REQUIRING_VALUE[_0x256047(0x12f)](_0x34434e[_0x256047(0x12a)])&&(_0x34434e[_0x256047(0xe8)]===undefined||_0x34434e[_0x256047(0xe8)]===null)&&_0x148f57[_0x256047(0x115)]({'code':_0x256047(0x110),'message':'Operator\x20\x27'+_0x34434e[_0x256047(0x12a)]+_0x256047(0xe6),'path':[_0x256047(0xe8)]}),_0x34434e['type']===_0x256047(0x117)&&_0x34434e['min']===undefined&&_0x34434e[_0x256047(0x118)]===undefined&&_0x148f57[_0x256047(0x115)]({'code':'custom','message':_0x256047(0xfb),'params':{'validationCode':_0x256047(0x106)}}),OPERATORS_REQUIRING_UNIT['has'](_0x34434e[_0x256047(0x12a)])&&_0x34434e['value']!==undefined&&!_0x34434e[_0x256047(0x11a)]&&_0x148f57[_0x256047(0x115)]({'code':'custom','message':_0x256047(0xe5)+_0x34434e[_0x256047(0x12a)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x256047(0x11a)],'params':{'validationCode':_0x256047(0x12e)}}),_0x34434e['type']===_0x256047(0x102)&&(!_0x34434e[_0x256047(0x132)]&&_0x148f57['addIssue']({'code':_0x256047(0x110),'message':_0x256047(0x111),'path':[_0x256047(0x132)]}),!_0x34434e['from']&&_0x148f57[_0x256047(0x115)]({'code':_0x256047(0x110),'message':_0x256047(0x101),'path':[_0x256047(0x129)]}));});export const ArrayMatchingSchema=z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x128)),z[a164_0x27cfbf(0x10e)]('all'),z[a164_0x27cfbf(0x12b)]({'atLeast':z[a164_0x27cfbf(0x11c)]()}),z[a164_0x27cfbf(0x12b)]({'atMost':z[a164_0x27cfbf(0x11c)]()}),z[a164_0x27cfbf(0x12b)]({'exactly':z[a164_0x27cfbf(0x11c)]()})]);export const AggregationDefSchema=z['discriminatedUnion']('type',[z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x122),a164_0x27cfbf(0xf6),a164_0x27cfbf(0xec),a164_0x27cfbf(0x11d)]),'column':z['string'](),'groupingColumns':z[a164_0x27cfbf(0x107)](z[a164_0x27cfbf(0x105)]())[a164_0x27cfbf(0x120)]()}),z[a164_0x27cfbf(0x12b)]({'type':z['literal']('Count'),'groupingColumns':z[a164_0x27cfbf(0x107)](z['string']())['optional']()}),z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0xf4)),'columns':z[a164_0x27cfbf(0x107)](z['string']())}),z['object']({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0xee),a164_0x27cfbf(0x134)]),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a164_0x27cfbf(0x107)](z['string']())['optional']()})]);export const TimeWindowDefSchema=z[a164_0x27cfbf(0x12b)]({'duration':z[a164_0x27cfbf(0x11c)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x27cfbf(0xf7),a164_0x27cfbf(0xf5),'TimeRange']);export const FilterColumnConditionDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)]('Column'),'column':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x27cfbf(0x120)]()})[a164_0x27cfbf(0x11f)]((_0x33a964,_0x3b00a0)=>{const _0x338f88=a164_0x27cfbf,_0x1e5e60=_0x33a964[_0x338f88(0x123)][_0x338f88(0x12a)];_0x33a964[_0x338f88(0xf3)]===_0x338f88(0xf1)?!TIMESTAMP_OPERATORS['has'](_0x1e5e60)&&_0x3b00a0[_0x338f88(0x115)]({'code':_0x338f88(0x110),'message':_0x338f88(0x121)+_0x1e5e60+'\x27)','path':[_0x338f88(0x123),_0x338f88(0x12a)]}):TIMESTAMP_OPERATORS[_0x338f88(0x12f)](_0x1e5e60)&&_0x3b00a0['addIssue']({'code':'custom','message':_0x338f88(0xe5)+_0x1e5e60+_0x338f88(0x109),'path':[_0x338f88(0x123),'type']});});export const FilterRuleDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x100)),'conditions':z[a164_0x27cfbf(0x107)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x27cfbf(0x125)](()=>z['object']({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0xfd)),'attribute':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x27cfbf(0x114)]()['optional'](),'aggregation':AggregationDefSchema[a164_0x27cfbf(0x120)](),'source':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'filter':FilterRuleDefSchema[a164_0x27cfbf(0x120)](),'limit':z[a164_0x27cfbf(0x11c)]()['optional']()}));export const BehaviorConditionDefSchema=z[a164_0x27cfbf(0x125)](()=>z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x10a)),'attribute':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x27cfbf(0x120)](),'exclude':z[a164_0x27cfbf(0x114)]()[a164_0x27cfbf(0x120)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'filter':FilterRuleDefSchema[a164_0x27cfbf(0x120)](),'timeWindow':TimeWindowDefSchema[a164_0x27cfbf(0x120)](),'limit':z['number']()[a164_0x27cfbf(0x120)]()}));function a164_0xff1f(_0xbe9884,_0x191602){_0xbe9884=_0xbe9884-0xe3;const _0x5934a6=a164_0x5934();let _0xff1f8f=_0x5934a6[_0xbe9884];return _0xff1f8f;}export const ColumnConditionDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x10d)),'column':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x27cfbf(0x125)](()=>z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x100),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)]()}));export const SegmentRefConditionDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0xe9)](['include','exclude']),'segment':z['string']()['min'](0x1,a164_0x27cfbf(0x10b))});export const ConditionDefSchema=z['lazy'](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x27cfbf(0x125)](()=>z['object']({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x100),'Or']),'conditions':z[a164_0x27cfbf(0x107)](ConditionDefSchema),'description':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)]()}));export const SegmentDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x10f))[a164_0x27cfbf(0x120)](),'name':z['string']()[a164_0x27cfbf(0xf2)](0x1,'Segment\x20name\x20is\x20required'),'description':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'folder':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'rule':RuleDefSchema['optional'](),'kind':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x112),a164_0x27cfbf(0x10c),a164_0x27cfbf(0xf8)])[a164_0x27cfbf(0x120)](),'visible':z['boolean']()[a164_0x27cfbf(0x120)](),'activations':z['array'](z[a164_0x27cfbf(0x128)]())[a164_0x27cfbf(0x120)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a164_0x1630dc=a164_0x51fb;(function(_0x333d2b,_0x59d3db){const _0x2a09ea=a164_0x51fb,_0x3fad6b=_0x333d2b();while(!![]){try{const _0x3e3544=parseInt(_0x2a09ea(0x20c))/0x1*(parseInt(_0x2a09ea(0x228))/0x2)+-parseInt(_0x2a09ea(0x233))/0x3+-parseInt(_0x2a09ea(0x225))/0x4+parseInt(_0x2a09ea(0x22a))/0x5+parseInt(_0x2a09ea(0x211))/0x6*(parseInt(_0x2a09ea(0x1fa))/0x7)+parseInt(_0x2a09ea(0x234))/0x8+-parseInt(_0x2a09ea(0x201))/0x9*(parseInt(_0x2a09ea(0x210))/0xa);if(_0x3e3544===_0x59d3db)break;else _0x3fad6b['push'](_0x3fad6b['shift']());}catch(_0x1f83bd){_0x3fad6b['push'](_0x3fad6b['shift']());}}}(a164_0x193a,0xd82a7));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a164_0x1630dc(0x1f0),'Greater','Less',a164_0x1630dc(0x203),a164_0x1630dc(0x205),'In',a164_0x1630dc(0x20b),a164_0x1630dc(0x22f),a164_0x1630dc(0x20e),a164_0x1630dc(0x217),a164_0x1630dc(0x230),'Contain',a164_0x1630dc(0x202),a164_0x1630dc(0x1ef),'TimeRange']);export const TimeUnitSchema=z[a164_0x1630dc(0x22c)]([a164_0x1630dc(0x222),'minute',a164_0x1630dc(0x204),a164_0x1630dc(0x206),'week',a164_0x1630dc(0x21f),'year']);export const AggregationTypeSchema=z[a164_0x1630dc(0x22c)]([a164_0x1630dc(0x200),a164_0x1630dc(0x213),a164_0x1630dc(0x223),'Min','Max',a164_0x1630dc(0x214),a164_0x1630dc(0x207),'Last']);function a164_0x193a(){const _0x238094=['day','First','Contain','discriminatedUnion','Behavior','Between','14549XQkRXl','Value','IsNull','array','30xmnMxX','6SWuKMA','realtime','Sum','CountDistinct','TimeRange\x20operator\x20requires\x20\x27duration\x27','addIssue','TimeWithinPast','include','Column','type','column','from','Segment\x20name\x20is\x20required','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','month','And','boolean','second','Average','lazy','539768EFFeQH','Operator\x20\x27','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','42pQBeOd','string','361405uNnllX','Last','enum','union','custom','Regexp','TimeWithinNext','object','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','1974675sVSoTi','9053616hnKyhL','TimeRange','operator','any','EndWith','Equal','min','duration','number','record','segment','literal','max','value','superRefine','6816467xVGabA','unit','MISSING_TIME_UNIT','has','Greater','optional','Count','2414133nLXpnb','StartWith','GreaterEqual','hour','LessEqual'];a164_0x193a=function(){return _0x238094;};return a164_0x193a();}const TemporalValueSchema=z[a164_0x1630dc(0x22d)]([z['object']({'timestamp':z[a164_0x1630dc(0x229)]()}),z[a164_0x1630dc(0x231)]({'last':z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x1f3)](),z[a164_0x1630dc(0x1f4)](z[a164_0x1630dc(0x229)](),z[a164_0x1630dc(0x1f3)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x229)](),z[a164_0x1630dc(0x1f3)](),z[a164_0x1630dc(0x221)](),TemporalValueSchema,z['array'](z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x229)](),z[a164_0x1630dc(0x1f3)](),z[a164_0x1630dc(0x221)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a164_0x1630dc(0x1fe),a164_0x1630dc(0x203),'Less','LessEqual','In',a164_0x1630dc(0x208),a164_0x1630dc(0x202),'EndWith',a164_0x1630dc(0x22f),a164_0x1630dc(0x217),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast','TimeWithinNext']);export const OperatorDefSchema=z[a164_0x1630dc(0x231)]({'type':OperatorTypeSchema,'not':z['boolean']()[a164_0x1630dc(0x1ff)](),'value':OperatorValueSchema[a164_0x1630dc(0x1ff)](),'min':z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x1f3)](),z[a164_0x1630dc(0x229)](),TemporalValueSchema])['optional'](),'max':z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x1f3)](),z['string'](),TemporalValueSchema])[a164_0x1630dc(0x1ff)](),'unit':TimeUnitSchema[a164_0x1630dc(0x1ff)](),'duration':z[a164_0x1630dc(0x231)]({'day':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)](),'week':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)](),'month':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)](),'year':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)](),'hour':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)](),'minute':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)](),'second':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)]()})[a164_0x1630dc(0x1ff)](),'from':z['object']({'last':z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x1f3)](),z[a164_0x1630dc(0x229)]()]),'unit':TimeUnitSchema})[a164_0x1630dc(0x1ff)](),'reverse':z['boolean']()[a164_0x1630dc(0x1ff)]()})['superRefine']((_0x43a1ce,_0x20083f)=>{const _0x4b47fe=a164_0x1630dc;OPERATORS_REQUIRING_VALUE[_0x4b47fe(0x1fd)](_0x43a1ce[_0x4b47fe(0x21a)])&&(_0x43a1ce[_0x4b47fe(0x1f8)]===undefined||_0x43a1ce['value']===null)&&_0x20083f[_0x4b47fe(0x216)]({'code':'custom','message':'Operator\x20\x27'+_0x43a1ce[_0x4b47fe(0x21a)]+'\x27\x20requires\x20a\x20value','path':[_0x4b47fe(0x1f8)]}),_0x43a1ce['type']===_0x4b47fe(0x20b)&&_0x43a1ce[_0x4b47fe(0x1f1)]===undefined&&_0x43a1ce[_0x4b47fe(0x1f7)]===undefined&&_0x20083f[_0x4b47fe(0x216)]({'code':_0x4b47fe(0x22e),'message':_0x4b47fe(0x227),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x4b47fe(0x1fd)](_0x43a1ce['type'])&&_0x43a1ce[_0x4b47fe(0x1f8)]!==undefined&&!_0x43a1ce['unit']&&_0x20083f['addIssue']({'code':_0x4b47fe(0x22e),'message':_0x4b47fe(0x226)+_0x43a1ce['type']+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x4b47fe(0x1fb)],'params':{'validationCode':_0x4b47fe(0x1fc)}}),_0x43a1ce[_0x4b47fe(0x21a)]===_0x4b47fe(0x235)&&(!_0x43a1ce[_0x4b47fe(0x1f2)]&&_0x20083f['addIssue']({'code':'custom','message':_0x4b47fe(0x215),'path':['duration']}),!_0x43a1ce['from']&&_0x20083f['addIssue']({'code':_0x4b47fe(0x22e),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x4b47fe(0x21c)]}));});export const ArrayMatchingSchema=z[a164_0x1630dc(0x22d)]([z[a164_0x1630dc(0x1f6)]('any'),z[a164_0x1630dc(0x1f6)]('all'),z[a164_0x1630dc(0x231)]({'atLeast':z[a164_0x1630dc(0x1f3)]()}),z[a164_0x1630dc(0x231)]({'atMost':z['number']()}),z['object']({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x1630dc(0x209)](a164_0x1630dc(0x21a),[z['object']({'type':z[a164_0x1630dc(0x22c)]([a164_0x1630dc(0x213),'Min','Max',a164_0x1630dc(0x223)]),'column':z[a164_0x1630dc(0x229)](),'groupingColumns':z[a164_0x1630dc(0x20f)](z[a164_0x1630dc(0x229)]())[a164_0x1630dc(0x1ff)]()}),z['object']({'type':z[a164_0x1630dc(0x1f6)](a164_0x1630dc(0x200)),'groupingColumns':z[a164_0x1630dc(0x20f)](z[a164_0x1630dc(0x229)]())['optional']()}),z[a164_0x1630dc(0x231)]({'type':z[a164_0x1630dc(0x1f6)](a164_0x1630dc(0x214)),'columns':z[a164_0x1630dc(0x20f)](z[a164_0x1630dc(0x229)]())}),z[a164_0x1630dc(0x231)]({'type':z[a164_0x1630dc(0x22c)]([a164_0x1630dc(0x207),a164_0x1630dc(0x22b)]),'column':z[a164_0x1630dc(0x229)](),'orderColumn':z[a164_0x1630dc(0x229)](),'groupingColumns':z['array'](z[a164_0x1630dc(0x229)]())['optional']()})]);export const TimeWindowDefSchema=z[a164_0x1630dc(0x231)]({'duration':z[a164_0x1630dc(0x1f3)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x1630dc(0x217),'TimeWithinNext',a164_0x1630dc(0x235)]);export const FilterColumnConditionDefSchema=z[a164_0x1630dc(0x231)]({'type':z[a164_0x1630dc(0x1f6)](a164_0x1630dc(0x219)),'column':z[a164_0x1630dc(0x229)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1630dc(0x1ff)]()})[a164_0x1630dc(0x1f9)]((_0x224f27,_0x79af8d)=>{const _0x140579=a164_0x1630dc,_0x25ac3e=_0x224f27[_0x140579(0x236)]['type'];_0x224f27[_0x140579(0x21b)]==='timestamp'?!TIMESTAMP_OPERATORS[_0x140579(0x1fd)](_0x25ac3e)&&_0x79af8d[_0x140579(0x216)]({'code':'custom','message':_0x140579(0x21e)+_0x25ac3e+'\x27)','path':[_0x140579(0x236),'type']}):TIMESTAMP_OPERATORS['has'](_0x25ac3e)&&_0x79af8d[_0x140579(0x216)]({'code':_0x140579(0x22e),'message':'Operator\x20\x27'+_0x25ac3e+_0x140579(0x232),'path':['operator','type']});});function a164_0x51fb(_0x4ce1a5,_0x46a742){_0x4ce1a5=_0x4ce1a5-0x1ee;const _0x193add=a164_0x193a();let _0x51fb50=_0x193add[_0x4ce1a5];return _0x51fb50;}export const FilterRuleDefSchema=z['object']({'type':z[a164_0x1630dc(0x1f6)](a164_0x1630dc(0x220)),'conditions':z[a164_0x1630dc(0x20f)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z['lazy'](()=>z[a164_0x1630dc(0x231)]({'type':z[a164_0x1630dc(0x1f6)](a164_0x1630dc(0x20d)),'attribute':z[a164_0x1630dc(0x229)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1630dc(0x1ff)](),'exclude':z['boolean']()[a164_0x1630dc(0x1ff)](),'aggregation':AggregationDefSchema[a164_0x1630dc(0x1ff)](),'source':z['string']()['optional'](),'filter':FilterRuleDefSchema[a164_0x1630dc(0x1ff)](),'limit':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z['object']({'type':z['literal'](a164_0x1630dc(0x20a)),'attribute':z[a164_0x1630dc(0x229)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x1630dc(0x221)]()[a164_0x1630dc(0x1ff)](),'aggregation':AggregationDefSchema[a164_0x1630dc(0x1ff)](),'source':z[a164_0x1630dc(0x229)]()[a164_0x1630dc(0x1ff)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a164_0x1630dc(0x1ff)](),'limit':z[a164_0x1630dc(0x1f3)]()[a164_0x1630dc(0x1ff)]()}));export const ColumnConditionDefSchema=z[a164_0x1630dc(0x231)]({'type':z['literal']('Column'),'column':z[a164_0x1630dc(0x229)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x1630dc(0x224)](()=>z['object']({'type':z[a164_0x1630dc(0x22c)]([a164_0x1630dc(0x220),'Or']),'conditions':z[a164_0x1630dc(0x20f)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentRefConditionDefSchema=z[a164_0x1630dc(0x231)]({'type':z[a164_0x1630dc(0x22c)]([a164_0x1630dc(0x218),'exclude']),'segment':z['string']()[a164_0x1630dc(0x1f1)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z['lazy'](()=>z[a164_0x1630dc(0x22d)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x1630dc(0x224)](()=>z[a164_0x1630dc(0x231)]({'type':z['enum']([a164_0x1630dc(0x220),'Or']),'conditions':z[a164_0x1630dc(0x20f)](ConditionDefSchema),'description':z[a164_0x1630dc(0x229)]()[a164_0x1630dc(0x1ff)]()}));export const SegmentDefSchema=z[a164_0x1630dc(0x231)]({'type':z['literal'](a164_0x1630dc(0x1f5))[a164_0x1630dc(0x1ff)](),'name':z[a164_0x1630dc(0x229)]()[a164_0x1630dc(0x1f1)](0x1,a164_0x1630dc(0x21d)),'description':z[a164_0x1630dc(0x229)]()[a164_0x1630dc(0x1ff)](),'folder':z[a164_0x1630dc(0x229)]()[a164_0x1630dc(0x1ff)](),'rule':RuleDefSchema['optional'](),'kind':z['enum'](['batch',a164_0x1630dc(0x212),'funnel_stage'])[a164_0x1630dc(0x1ff)](),'visible':z[a164_0x1630dc(0x221)]()[a164_0x1630dc(0x1ff)](),'activations':z['array'](z[a164_0x1630dc(0x1ee)]())[a164_0x1630dc(0x1ff)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x4e4d4c=a165_0x4ecf;(function(_0x5d5163,_0x40cda6){const _0x440f5e=a165_0x4ecf,_0x395275=_0x5d5163();while(!![]){try{const _0x3c5db9=parseInt(_0x440f5e(0x150))/0x1*(-parseInt(_0x440f5e(0x15a))/0x2)+parseInt(_0x440f5e(0x14f))/0x3+-parseInt(_0x440f5e(0x14d))/0x4*(-parseInt(_0x440f5e(0x151))/0x5)+parseInt(_0x440f5e(0x154))/0x6+-parseInt(_0x440f5e(0x14a))/0x7*(-parseInt(_0x440f5e(0x149))/0x8)+-parseInt(_0x440f5e(0x160))/0x9*(parseInt(_0x440f5e(0x161))/0xa)+-parseInt(_0x440f5e(0x144))/0xb;if(_0x3c5db9===_0x40cda6)break;else _0x395275['push'](_0x395275['shift']());}catch(_0x1998ce){_0x395275['push'](_0x395275['shift']());}}}(a165_0x2ecb,0xa10be));import{readFileSync}from'fs';import*as a165_0x2e1af3 from'path';import*as a165_0x2db897 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a165_0x4e4d4c(0x157),'push']);function a165_0x2ecb(){const _0x757307=['8NCzBqo','7350903CPuHlG','template','campaign_type','71112SWZtHD','toJSON','392910vqKemo','2eQXuIv','310BXtbVR','object','journey','1682010MrrNJy','length','message','email','segment','type','254596HoABcG','error','result','not\x20a\x20','parseDocument','relative','45vTEJDH','1336540amdzOq','YAML\x20parse\x20error:\x20','YAML_PARSE_ERROR','has','valid','basename','10792738vSUVDr','map','utf-8','campaign','filterType'];a165_0x2ecb=function(){return _0x757307;};return a165_0x2ecb();}export function isJourneyDef(_0x4b7731){const _0x30deb2=a165_0x4e4d4c;return typeof _0x4b7731==='object'&&_0x4b7731!==null&&_0x30deb2(0x159)in _0x4b7731&&_0x4b7731['type']==='journey';}export function isCampaignDef(_0x3628cc){const _0x45ff25=a165_0x4e4d4c;if(typeof _0x3628cc!=='object'||_0x3628cc===null)return![];const _0x2060b5=_0x3628cc,_0x5923b7=VALID_CAMPAIGN_TYPES[_0x45ff25(0x141)](_0x2060b5[_0x45ff25(0x14c)]);if(_0x2060b5[_0x45ff25(0x159)]==='campaign'&&_0x5923b7)return!![];if(_0x5923b7&&!_0x2060b5['type'])return!![];return![];}export function isTemplateDef(_0x5740ac){const _0x528988=a165_0x4e4d4c;return typeof _0x5740ac===_0x528988(0x152)&&_0x5740ac!==null&&_0x528988(0x159)in _0x5740ac&&_0x5740ac[_0x528988(0x159)]==='template';}export function isValidationResult(_0x27960f){return!('skipped'in _0x27960f);}export function createParseErrorResult(_0x1edd2c,_0x250245,_0x4a8965,_0xfef0c8,_0x59c572='segment'){const _0x3d7006=a165_0x4e4d4c;return{'filePath':_0x1edd2c,'relativePath':_0x250245,'source':_0x4a8965,'result':{'valid':![],'errors':[{'level':_0x3d7006(0x15b),'path':'','code':_0x3d7006(0x163),'message':_0xfef0c8}],'warnings':[]},'fileType':_0x59c572};}function a165_0x4ecf(_0xbe4328,_0x15e508){_0xbe4328=_0xbe4328-0x141;const _0x2ecb69=a165_0x2ecb();let _0x4ecfd1=_0x2ecb69[_0xbe4328];return _0x4ecfd1;}export function validateYamlFile(_0x266a44,_0x7d3715,_0x56d250={}){const _0x5cdafe=a165_0x4e4d4c,_0x9ae6ed=a165_0x2e1af3[_0x5cdafe(0x15f)](_0x7d3715,_0x266a44)||a165_0x2e1af3[_0x5cdafe(0x143)](_0x266a44);try{const _0x216fe1=readFileSync(_0x266a44,_0x5cdafe(0x146)),_0x4a783c=a165_0x2db897[_0x5cdafe(0x15e)](_0x216fe1),_0x5f4d60=_0x4a783c[_0x5cdafe(0x14e)]();if(!_0x5f4d60)return createParseErrorResult(_0x266a44,_0x9ae6ed,_0x216fe1,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0xeae697;if(isJourneyDef(_0x5f4d60))_0xeae697=_0x5cdafe(0x153);else{if(isCampaignDef(_0x5f4d60))_0xeae697='campaign';else isTemplateDef(_0x5f4d60)?_0xeae697=_0x5cdafe(0x14b):_0xeae697=_0x5cdafe(0x158);}if(_0x56d250['filterType']&&_0xeae697!==_0x56d250[_0x5cdafe(0x148)])return{'filePath':_0x266a44,'relativePath':_0x9ae6ed,'skipped':!![],'reason':_0x5cdafe(0x15d)+_0x56d250[_0x5cdafe(0x148)]};const _0x104489={'source':_0x216fe1,'document':_0x4a783c};let _0x38029f;if(_0xeae697===_0x5cdafe(0x153))_0x38029f=validateJourneyDef(_0x5f4d60,_0x104489);else{if(_0xeae697===_0x5cdafe(0x147))_0x38029f=validateCampaignDef(_0x5f4d60,_0x104489);else _0xeae697===_0x5cdafe(0x14b)?_0x38029f=validateTemplateDef(_0x5f4d60,_0x104489):_0x38029f=validateSegmentDef(_0x5f4d60,_0x104489);}return{'filePath':_0x266a44,'relativePath':_0x9ae6ed,'source':_0x216fe1,'result':_0x38029f,'fileType':_0xeae697};}catch(_0x3ca9b7){const _0x1638f6=_0x3ca9b7 instanceof Error?_0x3ca9b7[_0x5cdafe(0x156)]:String(_0x3ca9b7);return createParseErrorResult(_0x266a44,_0x9ae6ed,'',_0x5cdafe(0x162)+_0x1638f6);}}export function validateYamlFiles(_0x5eb827,_0x2b116f,_0x142df0={}){const _0x3987af=a165_0x4e4d4c;return _0x5eb827[_0x3987af(0x145)](_0xeaf8c1=>validateYamlFile(_0xeaf8c1,_0x2b116f,_0x142df0));}export function calculateSummary(_0x1b8620){const _0x456c81=a165_0x4e4d4c;let _0x937f21=0x0,_0x3f1788=0x0,_0xe88a7e=0x0,_0x6f5db4=0x0;for(const _0x633ef of _0x1b8620){if(!isValidationResult(_0x633ef)){_0x6f5db4++;continue;}_0x633ef[_0x456c81(0x15c)][_0x456c81(0x142)]?_0x937f21++:_0x3f1788++,_0xe88a7e+=_0x633ef[_0x456c81(0x15c)]['warnings'][_0x456c81(0x155)];}return{'validCount':_0x937f21,'invalidCount':_0x3f1788,'warningCount':_0xe88a7e,'skippedCount':_0x6f5db4,'hasErrors':_0x3f1788>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c1f3d,_0x38f2db){const _0xc07a22=a166_0x47c1,_0x255cab=_0x3c1f3d();while(!![]){try{const _0x20f779=parseInt(_0xc07a22(0xc7))/0x1+parseInt(_0xc07a22(0xe6))/0x2*(parseInt(_0xc07a22(0xd1))/0x3)+-parseInt(_0xc07a22(0xc9))/0x4*(-parseInt(_0xc07a22(0xcb))/0x5)+parseInt(_0xc07a22(0xcd))/0x6+-parseInt(_0xc07a22(0xf0))/0x7*(parseInt(_0xc07a22(0xdf))/0x8)+parseInt(_0xc07a22(0xd0))/0x9*(parseInt(_0xc07a22(0xd3))/0xa)+-parseInt(_0xc07a22(0xe8))/0xb;if(_0x20f779===_0x38f2db)break;else _0x255cab['push'](_0x255cab['shift']());}catch(_0x45d1c4){_0x255cab['push'](_0x255cab['shift']());}}}(a166_0x2133,0x5a442));import*as a166_0x2dce5f from'yaml';import a166_0x136c87 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a166_0x2133(){const _0x20073a=['message','issues','code','length','4006415YvBkEV','min','red','number','error','match','34279dgbiHJ','safeParse','92LQAanj','Invalid\x20YAML:\x20expected\x20an\x20object','40105cHMVZf','path','3751794IqpxJd','errors','pop','55197nWDYSA','14478XDLmtR','toString','500HdUMJK','dim','YAML\x20validation\x20error:\x20','map','data','success','cyan','repeat','getIn','max','column','range','8BrMIPk','object','level','flatMap','contents','join','push','160mNfUyl','invalid_union','6541876vOtVaM','split','location','\x20|\x20'];a166_0x2133=function(){return _0x20073a;};return a166_0x2133();}export function getLocationFromPath(_0x546a13,_0x4b97ce,_0x481cf9){const _0x280296=a166_0x47c1;if(!_0x546a13||!_0x4b97ce)return undefined;try{let _0x34199c=_0x546a13[_0x280296(0xdb)](_0x481cf9,!![]),_0x48cb81=[..._0x481cf9];while((!_0x34199c||typeof _0x34199c!==_0x280296(0xe0)||!(_0x280296(0xde)in _0x34199c)||!_0x34199c[_0x280296(0xde)])&&_0x48cb81[_0x280296(0xef)]>0x0){_0x48cb81[_0x280296(0xcf)](),_0x34199c=_0x48cb81[_0x280296(0xef)]>0x0?_0x546a13['getIn'](_0x48cb81,!![]):_0x546a13[_0x280296(0xe3)];}if(!_0x34199c||typeof _0x34199c!==_0x280296(0xe0)||!('range'in _0x34199c)||!_0x34199c[_0x280296(0xde)])return undefined;const [_0x12a391]=_0x34199c[_0x280296(0xde)];return offsetToLocation(_0x4b97ce,_0x12a391);}catch{return undefined;}}function a166_0x47c1(_0x441cc,_0x1571d5){_0x441cc=_0x441cc-0xc6;const _0x21337b=a166_0x2133();let _0x47c106=_0x21337b[_0x441cc];return _0x47c106;}export function offsetToLocation(_0x2d810c,_0x56a56a){const _0x4a08da=a166_0x47c1;let _0x5f3c47=0x1,_0x5dade7=0x1;for(let _0x4864c2=0x0;_0x4864c2<_0x56a56a&&_0x4864c2<_0x2d810c[_0x4a08da(0xef)];_0x4864c2++){_0x2d810c[_0x4864c2]==='\x0a'?(_0x5f3c47++,_0x5dade7=0x1):_0x5dade7++;}return{'line':_0x5f3c47,'column':_0x5dade7,'offset':_0x56a56a};}export function pathToArray(_0x670a5c){const _0x26cf7d=a166_0x47c1;if(!_0x670a5c)return[];return _0x670a5c[_0x26cf7d(0xe9)]('.')[_0x26cf7d(0xe2)](_0x534a66=>{const _0x127a77=_0x26cf7d,_0x48e8f1=_0x534a66[_0x127a77(0xc6)](/^(\w+)\[(\d+)\]$/);if(_0x48e8f1)return[_0x48e8f1[0x1],parseInt(_0x48e8f1[0x2],0xa)];return[_0x534a66];});}export function formatZodPath(_0x4b7add){const _0x34e3cc=a166_0x47c1;let _0x5c6d12='';for(const _0x208094 of _0x4b7add){if(typeof _0x208094===_0x34e3cc(0xf3))_0x5c6d12+='['+_0x208094+']';else{const _0xd33311=String(_0x208094);_0x5c6d12+=_0x5c6d12?'.'+_0xd33311:_0xd33311;}}return _0x5c6d12;}export function flattenZodIssues(_0x108d7b){const _0xc3fdf4=a166_0x47c1,_0x59bb7b=[];for(const _0x1e7f14 of _0x108d7b){if(_0x1e7f14['code']===_0xc3fdf4(0xe7)&&'errors'in _0x1e7f14){const _0x523f8d=_0x1e7f14['errors'];let _0x3a2760=_0x523f8d[0x0]||[];for(const _0x52b8a2 of _0x523f8d){_0x52b8a2[_0xc3fdf4(0xef)]<_0x3a2760['length']&&(_0x3a2760=_0x52b8a2);}const _0x4e16f3=_0x3a2760[_0xc3fdf4(0xd6)](_0x2bcaee=>({..._0x2bcaee,'path':[..._0x1e7f14[_0xc3fdf4(0xcc)],..._0x2bcaee['path']]}));_0x59bb7b[_0xc3fdf4(0xe5)](...flattenZodIssues(_0x4e16f3));}else _0x59bb7b[_0xc3fdf4(0xe5)](_0x1e7f14);}return _0x59bb7b;}export function safeParseYaml(_0x3a48fc,_0x2ec66d){const _0x1a5027=a166_0x47c1,_0x1caaa7=a166_0x2dce5f['parse'](_0x3a48fc);if(!_0x1caaa7||typeof _0x1caaa7!==_0x1a5027(0xe0))throw new Error(_0x1a5027(0xca));const _0x3225be=_0x2ec66d[_0x1a5027(0xc8)](_0x1caaa7);if(!_0x3225be[_0x1a5027(0xd8)]){const _0x2d1f97=_0x3225be[_0x1a5027(0xf4)][_0x1a5027(0xed)][0x0],_0x2bc6f5=formatZodPath(_0x2d1f97[_0x1a5027(0xcc)]);throw new Error(_0x2bc6f5?'YAML\x20validation\x20error\x20at\x20\x27'+_0x2bc6f5+'\x27:\x20'+_0x2d1f97[_0x1a5027(0xec)]:_0x1a5027(0xd5)+_0x2d1f97[_0x1a5027(0xec)]);}return _0x3225be[_0x1a5027(0xd7)];}export function formatIssueWithContext(_0x2c8915,_0x5cb7d3,_0x177303){const _0x2c1fa0=a166_0x47c1,_0x38a94c=[],_0x487433=_0x2c8915[_0x2c1fa0(0xe1)]===_0x2c1fa0(0xf4),_0x4fb76a=_0x487433?a166_0x136c87[_0x2c1fa0(0xf2)]:a166_0x136c87['yellow'],_0x12dbbc=_0x487433?a166_0x136c87[_0x2c1fa0(0xf2)]:a166_0x136c87['yellow'],_0x2e1213=_0x177303?a166_0x136c87[_0x2c1fa0(0xd9)](_0x177303+':'):'';if(_0x2c8915[_0x2c1fa0(0xea)]){const _0x4d7a30=a166_0x136c87[_0x2c1fa0(0xd9)](_0x2c8915[_0x2c1fa0(0xea)]['line']+':'+_0x2c8915[_0x2c1fa0(0xea)][_0x2c1fa0(0xdd)]);_0x38a94c[_0x2c1fa0(0xe5)](''+_0x2e1213+_0x4d7a30+':\x20'+_0x4fb76a(_0x2c8915[_0x2c1fa0(0xe1)])+'\x20'+_0x12dbbc('['+_0x2c8915['code']+']'));}else _0x38a94c[_0x2c1fa0(0xe5)](''+_0x2e1213+a166_0x136c87[_0x2c1fa0(0xd4)](_0x2c8915[_0x2c1fa0(0xcc)])+':\x20'+_0x4fb76a(_0x2c8915[_0x2c1fa0(0xe1)])+'\x20'+_0x12dbbc('['+_0x2c8915[_0x2c1fa0(0xee)]+']'));_0x38a94c[_0x2c1fa0(0xe5)](_0x2c8915[_0x2c1fa0(0xec)]);if(_0x2c8915[_0x2c1fa0(0xea)]&&_0x5cb7d3){const _0x3d2920=_0x5cb7d3['split']('\x0a'),{line:_0x22ce0c,column:_0x57d2a1}=_0x2c8915[_0x2c1fa0(0xea)],_0xea5663=Math[_0x2c1fa0(0xdc)](0x1,_0x22ce0c-0x1),_0x169114=Math[_0x2c1fa0(0xf1)](_0x3d2920[_0x2c1fa0(0xef)],_0x22ce0c+0x1);_0x38a94c[_0x2c1fa0(0xe5)]('');for(let _0x53e3b5=_0xea5663;_0x53e3b5<=_0x169114;_0x53e3b5++){const _0x318579=_0x3d2920[_0x53e3b5-0x1]||'',_0x39dfa7=a166_0x136c87[_0x2c1fa0(0xd4)](_0x53e3b5[_0x2c1fa0(0xd2)]()['padStart'](0x4)),_0x202920=a166_0x136c87[_0x2c1fa0(0xd4)](_0x2c1fa0(0xeb));if(_0x53e3b5===_0x22ce0c){_0x38a94c[_0x2c1fa0(0xe5)]('\x20\x20'+_0x39dfa7+_0x202920+_0x4fb76a(_0x318579));const _0x2aa194='\x20'[_0x2c1fa0(0xda)](0x4+0x3+_0x57d2a1-0x1);_0x38a94c['push']('\x20\x20'+_0x2aa194+_0x4fb76a('^'));}else _0x38a94c[_0x2c1fa0(0xe5)]('\x20\x20'+_0x39dfa7+_0x202920+a166_0x136c87[_0x2c1fa0(0xd4)](_0x318579));}}return _0x38a94c[_0x2c1fa0(0xe4)]('\x0a');}export function formatValidationResult(_0x3873a2,_0x1ba4a2,_0x2d7c80){const _0x4e0410=a166_0x47c1,_0x895f8c=[];for(const _0x516835 of _0x3873a2[_0x4e0410(0xce)]){_0x895f8c[_0x4e0410(0xe5)](formatIssueWithContext(_0x516835,_0x1ba4a2,_0x2d7c80)),_0x895f8c[_0x4e0410(0xe5)]('');}for(const _0x286665 of _0x3873a2['warnings']){_0x895f8c[_0x4e0410(0xe5)](formatIssueWithContext(_0x286665,_0x1ba4a2,_0x2d7c80)),_0x895f8c[_0x4e0410(0xe5)]('');}return _0x895f8c[_0x4e0410(0xe4)]('\x0a');}
|