@treasuredata/tdx 2026.6.4 → 2026.6.5
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.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/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-move-command.d.ts +19 -0
- package/dist/commands/segment-move-command.d.ts.map +1 -0
- package/dist/commands/segment-move-command.js +1 -0
- package/dist/commands/segment-move-command.js.map +1 -0
- 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/table-deleted.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.d.ts +18 -0
- package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +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/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.d.ts +28 -1
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/types/cdp.d.ts +15 -0
- package/dist/sdk/types/cdp.d.ts.map +1 -1
- package/dist/sdk/types/index.d.ts +1 -1
- 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/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/task-graph.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/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x110ed9,_0x3d21dc){const _0x37b1ff=a161_0x4a6a,_0x3a5dba=_0x110ed9();while(!![]){try{const _0x4d7aba=parseInt(_0x37b1ff(0x12e))/0x1+parseInt(_0x37b1ff(0x13a))/0x2*(parseInt(_0x37b1ff(0x135))/0x3)+parseInt(_0x37b1ff(0x13b))/0x4*(parseInt(_0x37b1ff(0x14d))/0x5)+parseInt(_0x37b1ff(0x14e))/0x6*(-parseInt(_0x37b1ff(0x152))/0x7)+-parseInt(_0x37b1ff(0x12a))/0x8+-parseInt(_0x37b1ff(0x13d))/0x9+-parseInt(_0x37b1ff(0x132))/0xa*(-parseInt(_0x37b1ff(0x137))/0xb);if(_0x4d7aba===_0x3d21dc)break;else _0x3a5dba['push'](_0x3a5dba['shift']());}catch(_0x297ecd){_0x3a5dba['push'](_0x3a5dba['shift']());}}}(a161_0x3223,0x340a2));import a161_0x2194ba 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';export function isSuccessfulResolution(_0x105d96){const _0x4db420=a161_0x4a6a;return _0x105d96[_0x4db420(0x158)]!==_0x4db420(0x12c);}function a161_0x4a6a(_0x1702a4,_0x34940e){_0x1702a4=_0x1702a4-0x123;const _0x322340=a161_0x3223();let _0x4a6a2b=_0x322340[_0x1702a4];return _0x4a6a2b;}export function isScopedResolution(_0x9ee397){const _0x15b41b=a161_0x4a6a;return _0x9ee397[_0x15b41b(0x158)]===_0x15b41b(0x12f)||_0x9ee397[_0x15b41b(0x158)]===_0x15b41b(0x151)||_0x9ee397[_0x15b41b(0x158)]===_0x15b41b(0x13f);}export function getScopedDetails(_0x1d8e36){const _0x3c748c=a161_0x4a6a;if(isScopedResolution(_0x1d8e36))return{'isScoped':_0x1d8e36[_0x3c748c(0x154)],'scopedFolderPath':_0x1d8e36['scopedFolderPath']};return undefined;}function a161_0x3223(){const _0x3d5a53=['no_parent','context','parent_name','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','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','resolve','includes','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','string','exists','invalid_yaml','No\x20tdx.json\x20found\x20for\x20file:\x20','join','segmentName','file_not_found','20yGslqV','12990mrSGgK','parent_segment','tdx.json','file','1106RjwgIb','stat','isScoped','isDirectory','match','Parent\x20segment\x20not\x20specified','type','scopedFolderPath','readFile','dirname','message','parentSegment','configDir','resourceType','root','journey','2285984HIDhQG','extname','error','parse','370536ubHWZF','directory','segment','cwd','977180MVQGQZ','replace','Not\x20a\x20YAML\x20file:\x20','350772EclvvI','startsWith','33rzDPpu','no_config','folderPath','4NJFzYi','182024odOsfY','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','2147310SIPrQq'];a161_0x3223=function(){return _0x3d5a53;};return a161_0x3223();}async function findTdxConfigAsync(_0x2c9d51,_0x13aa34){const _0x3451e2=a161_0x4a6a;let _0x12113d=a161_0x2194ba[_0x3451e2(0x143)](_0x2c9d51);const _0x3b5f11=a161_0x2194ba['parse'](_0x12113d)[_0x3451e2(0x128)];while(_0x12113d!==_0x3b5f11){const _0x1cdcca=a161_0x2194ba[_0x3451e2(0x14a)](_0x12113d,_0x3451e2(0x150));if(await _0x13aa34[_0x3451e2(0x147)](_0x1cdcca))try{const _0x4e0180=await _0x13aa34[_0x3451e2(0x15a)](_0x1cdcca),_0x4d78e2=JSON[_0x3451e2(0x12d)](_0x4e0180);if(_0x4d78e2[_0x3451e2(0x14f)]&&typeof _0x4d78e2[_0x3451e2(0x14f)]===_0x3451e2(0x146))return{'configPath':_0x1cdcca,'configDir':_0x12113d,'parentSegment':_0x4d78e2['parent_segment']};}catch{}_0x12113d=a161_0x2194ba['dirname'](_0x12113d);}return null;}function calculateScopedPath(_0x43459,_0x4335db){const _0x35887e=a161_0x4a6a,_0x2aa20a=a161_0x2194ba['relative'](_0x4335db,_0x43459),_0xd3ff2e=_0x2aa20a!==''&&_0x2aa20a!=='.'&&!_0x2aa20a[_0x35887e(0x136)]('..');return{'isScoped':_0xd3ff2e,'scopedFolderPath':_0xd3ff2e?_0x2aa20a[_0x35887e(0x133)](/\\/g,'/'):''};}export async function resolveTarget(_0x34cd77){const _0x4c6a2c=a161_0x4a6a,{arg:_0x23ba8b,contextParent:_0x34d01a,cwd:cwd=process[_0x4c6a2c(0x131)](),fs:fs=nodeFileSystem}=_0x34cd77;if(_0x23ba8b&&isYamlFilePath(_0x23ba8b))try{const _0x40c5fa=await resolveYamlFilePath(_0x23ba8b,fs),_0x47030e=a161_0x2194ba['resolve'](_0x23ba8b),_0x732e6b=a161_0x2194ba[_0x4c6a2c(0x123)](_0x47030e),_0x503efc=await findTdxConfigAsync(_0x732e6b,fs);if(!_0x503efc){if(_0x34d01a){const _0x5118db=a161_0x2194ba['dirname'](_0x47030e);return{'type':_0x4c6a2c(0x151),'parentName':_0x34d01a,'targetDir':_0x5118db,'configRoot':_0x5118db,'filePath':_0x47030e,'resourceName':_0x40c5fa[_0x4c6a2c(0x14b)],'folderPath':_0x40c5fa[_0x4c6a2c(0x139)],'resourceType':_0x40c5fa[_0x4c6a2c(0x127)],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x4c6a2c(0x138),'message':_0x4c6a2c(0x149)+_0x23ba8b,'arg':_0x23ba8b,'helpText':_0x4c6a2c(0x141)};}const _0x597e40=calculateScopedPath(_0x732e6b,_0x503efc[_0x4c6a2c(0x126)]);return{'type':'file','parentName':_0x503efc[_0x4c6a2c(0x125)],'targetDir':_0x503efc[_0x4c6a2c(0x126)],'configRoot':_0x503efc['configDir'],'filePath':_0x47030e,'resourceName':_0x40c5fa[_0x4c6a2c(0x14b)],'folderPath':_0x40c5fa['folderPath'],'resourceType':_0x40c5fa[_0x4c6a2c(0x127)],'isScoped':_0x597e40[_0x4c6a2c(0x154)],'scopedFolderPath':_0x597e40['scopedFolderPath']};}catch(_0x5af126){const _0x4f66d5=_0x5af126 instanceof Error?_0x5af126[_0x4c6a2c(0x124)]:String(_0x5af126);if(_0x4f66d5[_0x4c6a2c(0x144)]('File\x20not\x20found'))return{'type':_0x4c6a2c(0x12c),'errorCode':_0x4c6a2c(0x14c),'message':'File\x20not\x20found:\x20'+_0x23ba8b,'arg':_0x23ba8b};if(_0x4f66d5['includes']('No\x20tdx.json\x20found')){if(_0x34d01a){const _0x2d778d=a161_0x2194ba['resolve'](_0x23ba8b);if(await fs['exists'](_0x2d778d)){const _0x5a0ddc=a161_0x2194ba['dirname'](_0x2d778d),_0x59ae7c=await fs['readFile'](_0x2d778d),_0x4cd327=_0x59ae7c[_0x4c6a2c(0x156)](/^name:\s*["']?([^"'\n]+)["']?/m),_0xc5d7e8=_0x59ae7c[_0x4c6a2c(0x156)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x4f9c10=_0x4cd327?_0x4cd327[0x1]['trim']():a161_0x2194ba['basename'](_0x23ba8b,a161_0x2194ba[_0x4c6a2c(0x12b)](_0x23ba8b)),_0x440cf5=_0xc5d7e8&&_0xc5d7e8[0x1]['trim']()===_0x4c6a2c(0x129)?_0x4c6a2c(0x129):_0x4c6a2c(0x130);return{'type':_0x4c6a2c(0x151),'parentName':_0x34d01a,'targetDir':_0x5a0ddc,'configRoot':_0x5a0ddc,'filePath':_0x2d778d,'resourceName':_0x4f9c10,'folderPath':'','resourceType':_0x440cf5,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0x4c6a2c(0x138),'message':_0x4c6a2c(0x149)+_0x23ba8b,'arg':_0x23ba8b,'helpText':_0x4c6a2c(0x141)};}return{'type':_0x4c6a2c(0x12c),'errorCode':_0x4c6a2c(0x148),'message':_0x4f66d5,'arg':_0x23ba8b};}if(_0x23ba8b){const _0x1c8461=a161_0x2194ba[_0x4c6a2c(0x143)](cwd,_0x23ba8b);let _0x27957c=null;try{_0x27957c=await fs[_0x4c6a2c(0x153)](_0x1c8461);}catch{}if(_0x27957c?.[_0x4c6a2c(0x155)]()){const _0x5da8c2=await findTdxConfigAsync(_0x1c8461,fs);if(_0x5da8c2){const _0x346a6e=calculateScopedPath(_0x1c8461,_0x5da8c2[_0x4c6a2c(0x126)]);return{'type':_0x4c6a2c(0x12f),'parentName':_0x5da8c2[_0x4c6a2c(0x125)],'targetDir':_0x1c8461,'configRoot':_0x5da8c2['configDir'],'isScoped':_0x346a6e[_0x4c6a2c(0x154)],'scopedFolderPath':_0x346a6e[_0x4c6a2c(0x159)]};}if(_0x34d01a)return{'type':_0x4c6a2c(0x12f),'parentName':_0x34d01a,'targetDir':_0x1c8461,'configRoot':_0x1c8461,'isScoped':![],'scopedFolderPath':''};return{'type':_0x4c6a2c(0x12c),'errorCode':_0x4c6a2c(0x138),'message':_0x4c6a2c(0x145)+_0x23ba8b,'arg':_0x23ba8b,'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(_0x27957c?.['isFile']())return{'type':_0x4c6a2c(0x12c),'errorCode':_0x4c6a2c(0x148),'message':_0x4c6a2c(0x134)+_0x23ba8b,'arg':_0x23ba8b,'helpText':_0x4c6a2c(0x13c)};const _0x5a5b09=sanitizeFileName(_0x23ba8b),_0x3e1b4b=getSegmentRootDir(_0x5a5b09,cwd);return{'type':_0x4c6a2c(0x140),'parentName':_0x23ba8b,'targetDir':_0x3e1b4b,'configRoot':_0x3e1b4b};}const _0x1eb26b=await findTdxConfigAsync(cwd,fs);if(_0x1eb26b){const _0x4163e7=calculateScopedPath(cwd,_0x1eb26b[_0x4c6a2c(0x126)]);return{'type':_0x4c6a2c(0x13f),'parentName':_0x1eb26b[_0x4c6a2c(0x125)],'targetDir':cwd,'configRoot':_0x1eb26b[_0x4c6a2c(0x126)],'isScoped':_0x4163e7[_0x4c6a2c(0x154)],'scopedFolderPath':_0x4163e7['scopedFolderPath']};}if(_0x34d01a){const _0x2d709e=sanitizeFileName(_0x34d01a),_0x2e005d=getSegmentRootDir(_0x2d709e,cwd);return{'type':_0x4c6a2c(0x13f),'parentName':_0x34d01a,'targetDir':_0x2e005d,'configRoot':_0x2e005d,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4c6a2c(0x12c),'errorCode':_0x4c6a2c(0x13e),'message':_0x4c6a2c(0x157),'helpText':_0x4c6a2c(0x142)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x474dc7=a162_0x2448;(function(_0x31f9dc,_0x1f0d58){const _0x5c1cf3=a162_0x2448,_0x3c5eb6=_0x31f9dc();while(!![]){try{const _0x442fbd=parseInt(_0x5c1cf3(0x7e))/0x1*(parseInt(_0x5c1cf3(0x75))/0x2)+-parseInt(_0x5c1cf3(0x83))/0x3+-parseInt(_0x5c1cf3(0x78))/0x4+parseInt(_0x5c1cf3(0x76))/0x5*(-parseInt(_0x5c1cf3(0x6f))/0x6)+parseInt(_0x5c1cf3(0x81))/0x7*(parseInt(_0x5c1cf3(0x87))/0x8)+parseInt(_0x5c1cf3(0x73))/0x9+parseInt(_0x5c1cf3(0x7d))/0xa*(parseInt(_0x5c1cf3(0x7f))/0xb);if(_0x442fbd===_0x1f0d58)break;else _0x3c5eb6['push'](_0x3c5eb6['shift']());}catch(_0x123b1f){_0x3c5eb6['push'](_0x3c5eb6['shift']());}}}(a162_0x2ed6,0x695fd));import{existsSync,readFileSync}from'fs';import a162_0xd77d98 from'path';const TDX_CONFIG_FILE=a162_0x474dc7(0x84),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x3d1405=process['cwd']()){const _0x3bbdd9=a162_0x474dc7;let _0x4403f8=a162_0xd77d98['resolve'](_0x3d1405);const _0x292a4a=a162_0xd77d98[_0x3bbdd9(0x70)](_0x4403f8)['root'];while(_0x4403f8!==_0x292a4a){const _0x4868d7=a162_0xd77d98['join'](_0x4403f8,TDX_CONFIG_FILE);if(existsSync(_0x4868d7))return _0x4868d7;_0x4403f8=a162_0xd77d98[_0x3bbdd9(0x72)](_0x4403f8);}return null;}export function loadTdxConfig(_0x40ee51){const _0x59e6de=a162_0x474dc7,_0x255918=readFileSync(_0x40ee51,_0x59e6de(0x79));let _0x5011a8;try{_0x5011a8=JSON[_0x59e6de(0x70)](_0x255918);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x40ee51);}if(!_0x5011a8||typeof _0x5011a8!=='object')throw new Error(_0x59e6de(0x7c));const _0x70693f=_0x5011a8,_0x49b0dc=_0x70693f['parent_segment']&&typeof _0x70693f[_0x59e6de(0x77)]===_0x59e6de(0x86),_0x365c17=_0x70693f[_0x59e6de(0x71)]&&typeof _0x70693f[_0x59e6de(0x71)]===_0x59e6de(0x86);if(!_0x49b0dc&&!_0x365c17)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x2873ec={};return _0x49b0dc&&(_0x2873ec[_0x59e6de(0x77)]=_0x70693f['parent_segment']),_0x365c17&&(_0x2873ec[_0x59e6de(0x71)]=_0x70693f[_0x59e6de(0x71)]),_0x2873ec;}export function findTdxConfig(_0x10f5ee=process['cwd']()){const _0x513080=a162_0x474dc7,_0x5a7f7e=findTdxConfigPath(_0x10f5ee);if(!_0x5a7f7e)throw new Error(_0x513080(0x7a));const _0x3befc1=loadTdxConfig(_0x5a7f7e),_0xc6c1c=a162_0xd77d98['dirname'](_0x5a7f7e);return{'config':_0x3befc1,'configPath':_0x5a7f7e,'configDir':_0xc6c1c};}export function tryFindTdxConfig(_0x382d68){try{return findTdxConfig(_0x382d68);}catch{return null;}}export function getSegmentRootDir(_0x5bff48,_0x1c1143=process[a162_0x474dc7(0x6e)]()){const _0x45c919=a162_0x474dc7;return a162_0xd77d98[_0x45c919(0x7b)](_0x1c1143,SEGMENTS_DIR,_0x5bff48);}export function getTdxConfigPath(_0x3c1be9,_0x57b01d=process[a162_0x474dc7(0x6e)]()){return a162_0xd77d98['join'](getSegmentRootDir(_0x3c1be9,_0x57b01d),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x114851,_0x31f77a){const _0x295db3=a162_0x474dc7,_0x1ac11d=a162_0xd77d98[_0x295db3(0x80)](_0x114851),_0x4ff369=a162_0xd77d98[_0x295db3(0x74)](_0x31f77a,_0x1ac11d);if(_0x4ff369[_0x295db3(0x82)]('..'))return'';return _0x4ff369;}export function localPathToTdFolderPath(_0x35cefe){const _0x52557c=a162_0x474dc7,_0x2239d0=a162_0xd77d98[_0x52557c(0x72)](_0x35cefe);if(_0x2239d0==='.'||_0x2239d0==='')return'';return _0x2239d0[_0x52557c(0x85)](/\\/g,'/');}function a162_0x2ed6(){const _0x2fdc81=['5313852mnAmJM','relative','22zKiLGm','168335tDTXyp','parent_segment','3282080PeSGis','utf-8','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','join','Invalid\x20tdx.json:\x20expected\x20object','6402130XkXQmR','28909HBpBBt','11QggEEF','resolve','2911727MJNHAD','startsWith','2274276novWeS','tdx.json','replace','string','16cjuJZs','cwd','66ZDFAfy','parse','engage_workspace','dirname'];a162_0x2ed6=function(){return _0x2fdc81;};return a162_0x2ed6();}export function tdFolderPathToLocalPath(_0x6a896f,_0x122a0a){if(!_0x6a896f)return _0x122a0a;return a162_0xd77d98['join'](_0x122a0a,_0x6a896f);}export function createTdxConfigContent(_0x23308c){const _0x29057c={'parent_segment':_0x23308c};return JSON['stringify'](_0x29057c,null,0x2)+'\x0a';}function a162_0x2448(_0x433546,_0x34b5d0){_0x433546=_0x433546-0x6e;const _0x2ed644=a162_0x2ed6();let _0x24480f=_0x2ed644[_0x433546];return _0x24480f;}export function createEngageTdxConfigContent(_0x5c1783){const _0x183631={'engage_workspace':_0x5c1783};return JSON['stringify'](_0x183631,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a163_0x31d412=a163_0xabf6;function a163_0xabf6(_0x2b6be4,_0x213ee4){_0x2b6be4=_0x2b6be4-0x1ed;const _0x50cd6a=a163_0x50cd();let _0xabf66e=_0x50cd6a[_0x2b6be4];return _0xabf66e;}(function(_0xa361af,_0x485016){const _0x48ac09=a163_0xabf6,_0x4c3703=_0xa361af();while(!![]){try{const _0x2dc9e8=parseInt(_0x48ac09(0x21a))/0x1+-parseInt(_0x48ac09(0x207))/0x2*(-parseInt(_0x48ac09(0x210))/0x3)+-parseInt(_0x48ac09(0x1fe))/0x4*(parseInt(_0x48ac09(0x208))/0x5)+-parseInt(_0x48ac09(0x211))/0x6*(parseInt(_0x48ac09(0x203))/0x7)+-parseInt(_0x48ac09(0x1ef))/0x8+-parseInt(_0x48ac09(0x1f0))/0x9+parseInt(_0x48ac09(0x217))/0xa;if(_0x2dc9e8===_0x485016)break;else _0x4c3703['push'](_0x4c3703['shift']());}catch(_0x45122d){_0x4c3703['push'](_0x4c3703['shift']());}}}(a163_0x50cd,0x45672));import{z}from'zod';export const ScheduleTypeSchema=z[a163_0x31d412(0x216)]([a163_0x31d412(0x209),a163_0x31d412(0x1f8),a163_0x31d412(0x202),a163_0x31d412(0x20a),a163_0x31d412(0x1fb),'cron',a163_0x31d412(0x212)]);export const RepeatUnitSchema=z['enum']([a163_0x31d412(0x1ee),a163_0x31d412(0x215),a163_0x31d412(0x1f2),a163_0x31d412(0x1fa),a163_0x31d412(0x1f3),a163_0x31d412(0x1f1),a163_0x31d412(0x209)]);function a163_0x50cd(){const _0x8e29dc=['All','asc','rows','union','941277gamqVr','220686uKfazI','minutes_interval','nullable','string','hour','enum','2716230iZZHOg','cols','number','393787QoRRmN','desc','minute','1322376sEOwtF','797436eGdImo','once','day','month','masked','optional','boolean','Activation\x20name\x20is\x20required','hourly','unknown','week','monthly','clear','Top-N','146956cjSQXe','onSuccess','Last','object','daily','21ZAOBci','Connection\x20name\x20is\x20required','record','onFailure','2RvByuc','45DiHOAs','none','weekly','array'];a163_0x50cd=function(){return _0x8e29dc;};return a163_0x50cd();}export const ScheduleDefSchema=z[a163_0x31d412(0x201)]({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a163_0x31d412(0x1f5)](),'repeat_frequency':z[a163_0x31d412(0x219)]()[a163_0x31d412(0x1f5)](),'repeat_sub_frequency':z[a163_0x31d412(0x20b)](z[a163_0x31d412(0x219)]())[a163_0x31d412(0x1f5)](),'start_at':z['string']()[a163_0x31d412(0x213)]()[a163_0x31d412(0x1f5)](),'end_on':z[a163_0x31d412(0x214)]()[a163_0x31d412(0x213)]()[a163_0x31d412(0x1f5)](),'timezone':z['string']()['optional']()});export const NotificationDefSchema=z[a163_0x31d412(0x201)]({'notify_on':z[a163_0x31d412(0x20b)](z[a163_0x31d412(0x216)]([a163_0x31d412(0x1ff),a163_0x31d412(0x206)]))[a163_0x31d412(0x1f5)](),'email_recipients':z[a163_0x31d412(0x20b)](z[a163_0x31d412(0x214)]())['optional']()});export const ActivationColumnDefSchema=z[a163_0x31d412(0x20f)]([z[a163_0x31d412(0x214)](),z['object']({'name':z['string'](),'type':z[a163_0x31d412(0x214)]()['optional'](),'visibility':z[a163_0x31d412(0x216)]([a163_0x31d412(0x1fc),'masked'])[a163_0x31d412(0x1f5)]()})]);export const ActivationBehaviorDefSchema=z[a163_0x31d412(0x201)]({'columns':z[a163_0x31d412(0x20b)](z[a163_0x31d412(0x201)]({'name':z[a163_0x31d412(0x214)](),'type':z['string']()[a163_0x31d412(0x1f5)](),'visibility':z[a163_0x31d412(0x216)]([a163_0x31d412(0x1fc),a163_0x31d412(0x1f4)])['optional']()}))[a163_0x31d412(0x1f5)](),'behavior_table':z[a163_0x31d412(0x214)]()[a163_0x31d412(0x1f5)](),'join_row':z[a163_0x31d412(0x219)]()[a163_0x31d412(0x213)]()[a163_0x31d412(0x1f5)](),'join_strategy':z[a163_0x31d412(0x216)]([a163_0x31d412(0x20c),'First',a163_0x31d412(0x200),a163_0x31d412(0x1fd)])[a163_0x31d412(0x1f5)](),'formatting':z[a163_0x31d412(0x216)]([a163_0x31d412(0x20e),a163_0x31d412(0x218)])[a163_0x31d412(0x1f5)](),'order_by':z[a163_0x31d412(0x20b)](z[a163_0x31d412(0x201)]({'key':z[a163_0x31d412(0x214)](),'order':z[a163_0x31d412(0x216)]([a163_0x31d412(0x20d),a163_0x31d412(0x1ed)])}))['optional']()});export const ActivationDefSchema=z[a163_0x31d412(0x201)]({'name':z[a163_0x31d412(0x214)]()['min'](0x1,a163_0x31d412(0x1f7)),'description':z['string']()[a163_0x31d412(0x1f5)](),'connection':z[a163_0x31d412(0x214)]()['min'](0x1,a163_0x31d412(0x204)),'all_columns':z[a163_0x31d412(0x1f6)]()[a163_0x31d412(0x1f5)](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a163_0x31d412(0x1f5)](),'notification':NotificationDefSchema[a163_0x31d412(0x1f5)](),'connector_config':z[a163_0x31d412(0x205)](z[a163_0x31d412(0x214)](),z[a163_0x31d412(0x1f9)]())[a163_0x31d412(0x1f5)](),'activation_template_id':z[a163_0x31d412(0x214)]()[a163_0x31d412(0x213)]()['optional'](),'behavior':ActivationBehaviorDefSchema[a163_0x31d412(0x213)]()[a163_0x31d412(0x1f5)](),'run_after_journey_refresh':z['boolean']()[a163_0x31d412(0x1f5)](),'nested_workflow_project_name':z[a163_0x31d412(0x214)]()[a163_0x31d412(0x1f5)](),'nested_workflow_name':z[a163_0x31d412(0x214)]()['optional'](),'lock_enabled':z['boolean']()['optional']()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d8b6c,_0x5ade6d){var _0x473d7b=a164_0x15d2,_0x304f99=_0x3d8b6c();while(!![]){try{var _0x518c6d=-parseInt(_0x473d7b(0xd5))/0x1*(parseInt(_0x473d7b(0xdd))/0x2)+parseInt(_0x473d7b(0xd9))/0x3+parseInt(_0x473d7b(0xdc))/0x4*(-parseInt(_0x473d7b(0xda))/0x5)+-parseInt(_0x473d7b(0xd4))/0x6+-parseInt(_0x473d7b(0xd7))/0x7+parseInt(_0x473d7b(0xdb))/0x8*(parseInt(_0x473d7b(0xd8))/0x9)+parseInt(_0x473d7b(0xd6))/0xa;if(_0x518c6d===_0x5ade6d)break;else _0x304f99['push'](_0x304f99['shift']());}catch(_0x5b4b0f){_0x304f99['push'](_0x304f99['shift']());}}}(a164_0x478b,0xeebb2));function a164_0x15d2(_0x90a473,_0x3fa748){_0x90a473=_0x90a473-0xd4;var _0x478b17=a164_0x478b();var _0x15d275=_0x478b17[_0x90a473];return _0x15d275;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a164_0x478b(){var _0x576540=['5nKcQOQ','8SBFJZq','2459372UcsirN','66QeNMBV','3364980AQhcVk','38224FFDSfY','33745450lNGZxs','7295302YHxUYg','6410223XVhlDJ','1110903bHgBOr'];a164_0x478b=function(){return _0x576540;};return a164_0x478b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x421509=a165_0x1c1a;(function(_0x5b0cc7,_0x362235){const _0x402460=a165_0x1c1a,_0x16de02=_0x5b0cc7();while(!![]){try{const _0x5984e4=-parseInt(_0x402460(0x1f9))/0x1*(-parseInt(_0x402460(0x203))/0x2)+parseInt(_0x402460(0x1f0))/0x3+-parseInt(_0x402460(0x1e9))/0x4*(-parseInt(_0x402460(0x208))/0x5)+-parseInt(_0x402460(0x1f3))/0x6+parseInt(_0x402460(0x1e1))/0x7+-parseInt(_0x402460(0x209))/0x8+-parseInt(_0x402460(0x1f8))/0x9*(-parseInt(_0x402460(0x1ff))/0xa);if(_0x5984e4===_0x362235)break;else _0x16de02['push'](_0x16de02['shift']());}catch(_0x4d26c0){_0x16de02['push'](_0x16de02['shift']());}}}(a165_0xd1de,0xeb2ba));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a165_0x421509(0x1e5),a165_0x421509(0x206),a165_0x421509(0x1f1)]);export const ReentryModeTypeSchema=z[a165_0x421509(0x1e3)](['no_reentry','reentry_unless_goal_achieved',a165_0x421509(0x1f2)]);export const WaitUnitTypeSchema=z[a165_0x421509(0x1e3)](['day','week']);function a165_0x1c1a(_0x55353b,_0x5f462a){_0x55353b=_0x55353b-0x1e1;const _0xd1debb=a165_0xd1de();let _0x1c1ae8=_0xd1debb[_0x55353b];return _0x1c1ae8;}export const StepTypeValueSchema=z['enum']([a165_0x421509(0x201),a165_0x421509(0x1fb),a165_0x421509(0x1ec),'ab_test',a165_0x421509(0x204),a165_0x421509(0x1e2),a165_0x421509(0x1e8)]);export const EmbeddedSegmentDefSchema=z[a165_0x421509(0x1f5)]({'description':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a165_0x421509(0x1f5)]({'journey':z[a165_0x421509(0x1f6)](),'stage':z[a165_0x421509(0x1f6)](),'bundle_id':z['string']()[a165_0x421509(0x1e7)]()});export const CriteriaDefSchema=z[a165_0x421509(0x1f5)]({'name':z[a165_0x421509(0x1f6)](),'description':z[a165_0x421509(0x1f6)]()['optional'](),'segment':z[a165_0x421509(0x1f6)](),'target':JumpTargetDefSchema[a165_0x421509(0x1e7)]()});const WaitConditionTimeoutDefSchema=z[a165_0x421509(0x1f5)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z['string']()['optional']()}),WaitConditionDefSchema=z[a165_0x421509(0x1f5)]({'segment':z[a165_0x421509(0x1f6)](),'next':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'timeout':WaitConditionTimeoutDefSchema[a165_0x421509(0x1e7)]()}),WaitStepParamsDefSchema=z[a165_0x421509(0x1f5)]({'duration':z[a165_0x421509(0x1eb)]()[a165_0x421509(0x1e7)](),'unit':WaitUnitTypeSchema[a165_0x421509(0x1e7)](),'wait_until':z['string']()[a165_0x421509(0x1e7)](),'condition':WaitConditionDefSchema[a165_0x421509(0x1e7)](),'days_of_week':z[a165_0x421509(0x1ef)](z[a165_0x421509(0x1f6)]())[a165_0x421509(0x1e7)]()}),StepBaseFields={'name':z[a165_0x421509(0x1f6)](),'uuid':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'next':z['string']()[a165_0x421509(0x1e7)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a165_0x421509(0x1fa)](a165_0x421509(0x201)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a165_0x421509(0x1f5)]({'activation':z[a165_0x421509(0x1f6)]()}),ActivationStepDefSchema=z[a165_0x421509(0x1f5)]({...StepBaseFields,'type':z[a165_0x421509(0x1fa)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a165_0x421509(0x1f5)]({'name':z['string'](),'segment':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'segment_id':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'excluded':z['boolean']()['optional'](),'next':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)]()}),DecisionPointStepParamsDefSchema=z[a165_0x421509(0x1f5)]({'branches':z[a165_0x421509(0x1ef)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a165_0x421509(0x1f5)]({...StepBaseFields,'type':z[a165_0x421509(0x1fa)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a165_0x421509(0x1f5)]({'id':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'name':z[a165_0x421509(0x1f6)](),'percentage':z[a165_0x421509(0x1eb)](),'next':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)]()}),AbTestStepParamsDefSchema=z[a165_0x421509(0x1f5)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'customized_split':z[a165_0x421509(0x1fc)]()[a165_0x421509(0x1e7)]()}),AbTestStepDefSchema=z[a165_0x421509(0x1f5)]({...StepBaseFields,'type':z['literal'](a165_0x421509(0x1ea)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a165_0x421509(0x1f5)]({...StepBaseFields,'type':z[a165_0x421509(0x1fa)](a165_0x421509(0x204))}),JumpStepParamsDefSchema=z[a165_0x421509(0x1f5)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a165_0x421509(0x1f5)]({...StepBaseFields,'type':z[a165_0x421509(0x1fa)](a165_0x421509(0x1e2)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a165_0x421509(0x1f5)]({...StepBaseFields,'type':z[a165_0x421509(0x1fa)]('end')})[a165_0x421509(0x1fd)]();export const StepDefSchema=z[a165_0x421509(0x1ed)](a165_0x421509(0x1ee),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a165_0x421509(0x1f5)]({'name':z[a165_0x421509(0x1f6)](),'description':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'id':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'entry_criteria':CriteriaDefSchema[a165_0x421509(0x1e7)](),'exit_criteria':z['array'](CriteriaDefSchema)[a165_0x421509(0x1e7)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'steps':z[a165_0x421509(0x1ef)](StepDefSchema)[a165_0x421509(0x1e7)]()});export const JourneyEntryDefSchema=z[a165_0x421509(0x1f5)]({'name':z['string']()[a165_0x421509(0x1e7)](),'version':z[a165_0x421509(0x1f6)]()['optional'](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a165_0x421509(0x1fc)]()[a165_0x421509(0x1e7)](),'stages':z[a165_0x421509(0x1ef)](StageDefSchema),'id':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'version_number':z['number']()['optional'](),'goal':CriteriaDefSchema[a165_0x421509(0x1e7)](),'reentry':ReentryModeTypeSchema[a165_0x421509(0x1e7)]()});export const JourneyDefSchema=z['lazy'](()=>z[a165_0x421509(0x1f5)]({'type':z[a165_0x421509(0x1fa)](a165_0x421509(0x1f7)),'name':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1f4)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'bundle_id':z[a165_0x421509(0x1f6)]()['optional'](),'bundle_name':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'folder_id':z['string']()['optional'](),'reentry':ReentryModeTypeSchema[a165_0x421509(0x1e7)](),'allow_reentry':z['boolean']()[a165_0x421509(0x1e7)](),'goal':CriteriaDefSchema[a165_0x421509(0x1e7)](),'id':z['string']()[a165_0x421509(0x1e7)](),'version':z[a165_0x421509(0x1f6)]()[a165_0x421509(0x1e7)](),'version_number':z[a165_0x421509(0x1eb)]()['optional'](),'stages':z[a165_0x421509(0x1ef)](StageDefSchema)[a165_0x421509(0x1e7)](),'versions':z[a165_0x421509(0x1ef)](JourneyEntryDefSchema)['optional'](),'journeys':z['array'](JourneyEntryDefSchema)[a165_0x421509(0x1e7)](),'segments':z[a165_0x421509(0x20a)](z[a165_0x421509(0x1f6)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a165_0x421509(0x20a)](z[a165_0x421509(0x1f6)](),ActivationDefSchema)['optional']()})[a165_0x421509(0x1fe)](_0x279a86=>{const _0x24c776=a165_0x421509,_0x3582c2=[_0x279a86['journeys'],_0x279a86[_0x24c776(0x1e6)],_0x279a86[_0x24c776(0x1e4)]][_0x24c776(0x207)](_0x28c327=>Array[_0x24c776(0x200)](_0x28c327)&&_0x28c327[_0x24c776(0x202)]>0x0)[_0x24c776(0x202)];return _0x3582c2===0x1;},{'message':a165_0x421509(0x205)}));function a165_0xd1de(){const _0x3bcec7=['1096010ebNSLS','merge','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','simulation','filter','15505bihDmk','8105992mgNXPw','record','4272317xICjma','jump','enum','versions','draft','stages','optional','end','732nUAvQu','ab_test','number','decision_point','discriminatedUnion','type','array','3473661oNDuJs','launched','reentry_always','9429744mtyraU','min','object','string','journey','18WGSxzW','2RXTOen','literal','activation','boolean','passthrough','refine','582100JleuwH','isArray','wait','length'];a165_0xd1de=function(){return _0x3bcec7;};return a165_0xd1de();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a167_0x48fc(_0x5c436a,_0x5a517b){_0x5c436a=_0x5c436a-0x1ad;var _0xed2b8f=a167_0xed2b();var _0x48fc6c=_0xed2b8f[_0x5c436a];return _0x48fc6c;}function a167_0xed2b(){var _0x3fb250=['13nXpGFT','8582RgTlVn','68990MRNgmh','5722nvPKlW','1eMTxGW','17284oaBsok','8NUHcqK','330BKaMEJ','150bOBsaL','1285644qlAPdI','98967HCokJu','419319daGlxq','72WQTifa'];a167_0xed2b=function(){return _0x3fb250;};return a167_0xed2b();}(function(_0x2d7390,_0x5034b5){var _0x57f97e=a167_0x48fc,_0x367d2a=_0x2d7390();while(!![]){try{var _0x508f2c=-parseInt(_0x57f97e(0x1b4))/0x1*(-parseInt(_0x57f97e(0x1b3))/0x2)+parseInt(_0x57f97e(0x1af))/0x3*(parseInt(_0x57f97e(0x1b5))/0x4)+parseInt(_0x57f97e(0x1b2))/0x5+-parseInt(_0x57f97e(0x1b7))/0x6*(-parseInt(_0x57f97e(0x1b1))/0x7)+-parseInt(_0x57f97e(0x1b6))/0x8*(parseInt(_0x57f97e(0x1ae))/0x9)+-parseInt(_0x57f97e(0x1b8))/0xa*(parseInt(_0x57f97e(0x1ad))/0xb)+-parseInt(_0x57f97e(0x1b9))/0xc*(-parseInt(_0x57f97e(0x1b0))/0xd);if(_0x508f2c===_0x5034b5)break;else _0x367d2a['push'](_0x367d2a['shift']());}catch(_0x297b13){_0x367d2a['push'](_0x367d2a['shift']());}}}(a167_0xed2b,0x1bae8));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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a167_0x123457=a167_0x4330;(function(_0x54ccf4,_0x319c9a){const _0x438eb5=a167_0x4330,_0x2e7a32=_0x54ccf4();while(!![]){try{const _0x38e5e2=-parseInt(_0x438eb5(0x218))/0x1+parseInt(_0x438eb5(0x221))/0x2+-parseInt(_0x438eb5(0x22c))/0x3+parseInt(_0x438eb5(0x1f3))/0x4*(-parseInt(_0x438eb5(0x210))/0x5)+-parseInt(_0x438eb5(0x1f7))/0x6+-parseInt(_0x438eb5(0x20e))/0x7*(parseInt(_0x438eb5(0x22b))/0x8)+parseInt(_0x438eb5(0x1ef))/0x9*(parseInt(_0x438eb5(0x214))/0xa);if(_0x38e5e2===_0x319c9a)break;else _0x2e7a32['push'](_0x2e7a32['shift']());}catch(_0x127569){_0x2e7a32['push'](_0x2e7a32['shift']());}}}(a167_0xb07c,0x88173));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a167_0x123457(0x20a),a167_0x123457(0x21d),'Less',a167_0x123457(0x1ee),a167_0x123457(0x224),'In',a167_0x123457(0x1ff),a167_0x123457(0x220),'IsNull','TimeWithinPast',a167_0x123457(0x1f5),a167_0x123457(0x20c),'StartWith','EndWith',a167_0x123457(0x200)]);export const TimeUnitSchema=z['enum'](['second',a167_0x123457(0x22a),a167_0x123457(0x206),a167_0x123457(0x234),a167_0x123457(0x1ed),a167_0x123457(0x225),a167_0x123457(0x1ea)]);function a167_0xb07c(){const _0x593e47=['Max','realtime','Segment\x20name\x20is\x20required','Greater','custom','timestamp','Regexp','2093252bgeLQc','discriminatedUnion','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','LessEqual','month','MISSING_TIME_UNIT','superRefine','Count','And','minute','704232ltpSiB','902715yoUlDg','max','batch','Average','array','union','exclude','Behavior','day','any','min','CountDistinct','MISSING_BETWEEN_BOUNDS','lazy','segment','optional','from','year','number','StartWith','week','GreaterEqual','27750582PTfKpm','boolean','Last','TimeRange\x20operator\x20requires\x20\x27duration\x27','12dAeLfO','record','TimeWithinNext','addIssue','5791038eBJKlE','unit','literal','Less','funnel_stage','TimeWithinPast','value','EndWith','Between','TimeRange','Sum','type','Value','Operator\x20\x27','string','hour','\x27\x20requires\x20a\x20value','object','has','Equal','Segment\x20reference\x20must\x20not\x20be\x20empty','Contain','Min','63plVovQ','enum','1387495VBYrKX','First','\x27\x20requires\x20a\x20time\x20unit','Composite','10tLVDSQ','duration','Column','operator','681761stDCyG','include'];a167_0xb07c=function(){return _0x593e47;};return a167_0xb07c();}export const AggregationTypeSchema=z[a167_0x123457(0x20f)]([a167_0x123457(0x228),a167_0x123457(0x201),a167_0x123457(0x22f),'Min','Max','CountDistinct',a167_0x123457(0x211),a167_0x123457(0x1f1)]);const TemporalValueSchema=z[a167_0x123457(0x231)]([z[a167_0x123457(0x208)]({'timestamp':z[a167_0x123457(0x205)]()}),z['object']({'last':z[a167_0x123457(0x231)]([z[a167_0x123457(0x1eb)](),z[a167_0x123457(0x1f4)](z['string'](),z[a167_0x123457(0x1eb)]())]),'unit':z[a167_0x123457(0x205)]()})]),OperatorValueSchema=z[a167_0x123457(0x231)]([z[a167_0x123457(0x205)](),z[a167_0x123457(0x1eb)](),z[a167_0x123457(0x1f0)](),TemporalValueSchema,z['array'](z['union']([z[a167_0x123457(0x205)](),z[a167_0x123457(0x1eb)](),z[a167_0x123457(0x1f0)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a167_0x123457(0x20a),'Greater','GreaterEqual',a167_0x123457(0x1fa),a167_0x123457(0x224),'In',a167_0x123457(0x20c),a167_0x123457(0x1ec),a167_0x123457(0x1fe),'Regexp',a167_0x123457(0x1fc),a167_0x123457(0x1f5)]),OPERATORS_REQUIRING_UNIT=new Set([a167_0x123457(0x1fc),a167_0x123457(0x1f5)]);export const OperatorDefSchema=z[a167_0x123457(0x208)]({'type':OperatorTypeSchema,'not':z[a167_0x123457(0x1f0)]()[a167_0x123457(0x1e8)](),'value':OperatorValueSchema['optional'](),'min':z[a167_0x123457(0x231)]([z[a167_0x123457(0x1eb)](),z['string'](),TemporalValueSchema])[a167_0x123457(0x1e8)](),'max':z[a167_0x123457(0x231)]([z['number'](),z['string'](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a167_0x123457(0x1e8)](),'duration':z[a167_0x123457(0x208)]({'day':z['number']()[a167_0x123457(0x1e8)](),'week':z[a167_0x123457(0x1eb)]()[a167_0x123457(0x1e8)](),'month':z[a167_0x123457(0x1eb)]()[a167_0x123457(0x1e8)](),'year':z[a167_0x123457(0x1eb)]()['optional'](),'hour':z[a167_0x123457(0x1eb)]()[a167_0x123457(0x1e8)](),'minute':z[a167_0x123457(0x1eb)]()[a167_0x123457(0x1e8)](),'second':z[a167_0x123457(0x1eb)]()[a167_0x123457(0x1e8)]()})[a167_0x123457(0x1e8)](),'from':z[a167_0x123457(0x208)]({'last':z[a167_0x123457(0x231)]([z['number'](),z[a167_0x123457(0x205)]()]),'unit':TimeUnitSchema})[a167_0x123457(0x1e8)](),'reverse':z[a167_0x123457(0x1f0)]()[a167_0x123457(0x1e8)]()})['superRefine']((_0x25aa80,_0x206c9b)=>{const _0x2d478c=a167_0x123457;OPERATORS_REQUIRING_VALUE['has'](_0x25aa80[_0x2d478c(0x202)])&&(_0x25aa80[_0x2d478c(0x1fd)]===undefined||_0x25aa80[_0x2d478c(0x1fd)]===null)&&_0x206c9b[_0x2d478c(0x1f6)]({'code':'custom','message':_0x2d478c(0x204)+_0x25aa80[_0x2d478c(0x202)]+_0x2d478c(0x207),'path':[_0x2d478c(0x1fd)]}),_0x25aa80['type']===_0x2d478c(0x1ff)&&_0x25aa80[_0x2d478c(0x236)]===undefined&&_0x25aa80[_0x2d478c(0x22d)]===undefined&&_0x206c9b['addIssue']({'code':_0x2d478c(0x21e),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0x2d478c(0x1e5)}}),OPERATORS_REQUIRING_UNIT['has'](_0x25aa80[_0x2d478c(0x202)])&&_0x25aa80[_0x2d478c(0x1fd)]!==undefined&&!_0x25aa80[_0x2d478c(0x1f8)]&&_0x206c9b[_0x2d478c(0x1f6)]({'code':'custom','message':_0x2d478c(0x204)+_0x25aa80[_0x2d478c(0x202)]+_0x2d478c(0x212),'path':[_0x2d478c(0x1f8)],'params':{'validationCode':_0x2d478c(0x226)}}),_0x25aa80[_0x2d478c(0x202)]===_0x2d478c(0x200)&&(!_0x25aa80[_0x2d478c(0x215)]&&_0x206c9b[_0x2d478c(0x1f6)]({'code':_0x2d478c(0x21e),'message':_0x2d478c(0x1f2),'path':[_0x2d478c(0x215)]}),!_0x25aa80[_0x2d478c(0x1e9)]&&_0x206c9b[_0x2d478c(0x1f6)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x2d478c(0x1e9)]}));});export const ArrayMatchingSchema=z[a167_0x123457(0x231)]([z[a167_0x123457(0x1f9)](a167_0x123457(0x235)),z[a167_0x123457(0x1f9)]('all'),z[a167_0x123457(0x208)]({'atLeast':z[a167_0x123457(0x1eb)]()}),z[a167_0x123457(0x208)]({'atMost':z[a167_0x123457(0x1eb)]()}),z['object']({'exactly':z[a167_0x123457(0x1eb)]()})]);export const AggregationDefSchema=z[a167_0x123457(0x222)](a167_0x123457(0x202),[z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x20f)]([a167_0x123457(0x201),a167_0x123457(0x20d),a167_0x123457(0x21a),a167_0x123457(0x22f)]),'column':z['string'](),'groupingColumns':z[a167_0x123457(0x230)](z['string']())[a167_0x123457(0x1e8)]()}),z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x1f9)](a167_0x123457(0x228)),'groupingColumns':z[a167_0x123457(0x230)](z[a167_0x123457(0x205)]())[a167_0x123457(0x1e8)]()}),z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x1f9)](a167_0x123457(0x1e4)),'columns':z[a167_0x123457(0x230)](z[a167_0x123457(0x205)]())}),z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x20f)]([a167_0x123457(0x211),'Last']),'column':z['string'](),'orderColumn':z[a167_0x123457(0x205)](),'groupingColumns':z[a167_0x123457(0x230)](z['string']())[a167_0x123457(0x1e8)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a167_0x123457(0x1eb)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a167_0x123457(0x1fc),'TimeWithinNext',a167_0x123457(0x200)]);export const FilterColumnConditionDefSchema=z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x1f9)](a167_0x123457(0x216)),'column':z[a167_0x123457(0x205)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x123457(0x1e8)]()})[a167_0x123457(0x227)]((_0x4c1523,_0x391666)=>{const _0x5a5eb5=a167_0x123457,_0x9004fe=_0x4c1523[_0x5a5eb5(0x217)][_0x5a5eb5(0x202)];_0x4c1523['column']===_0x5a5eb5(0x21f)?!TIMESTAMP_OPERATORS[_0x5a5eb5(0x209)](_0x9004fe)&&_0x391666[_0x5a5eb5(0x1f6)]({'code':'custom','message':_0x5a5eb5(0x223)+_0x9004fe+'\x27)','path':['operator',_0x5a5eb5(0x202)]}):TIMESTAMP_OPERATORS[_0x5a5eb5(0x209)](_0x9004fe)&&_0x391666['addIssue']({'code':_0x5a5eb5(0x21e),'message':_0x5a5eb5(0x204)+_0x9004fe+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x5a5eb5(0x217),'type']});});export const FilterRuleDefSchema=z['object']({'type':z['literal'](a167_0x123457(0x229)),'conditions':z[a167_0x123457(0x230)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a167_0x123457(0x1e6)](()=>z['object']({'type':z['literal'](a167_0x123457(0x203)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x123457(0x1e8)](),'exclude':z['boolean']()[a167_0x123457(0x1e8)](),'aggregation':AggregationDefSchema[a167_0x123457(0x1e8)](),'source':z[a167_0x123457(0x205)]()[a167_0x123457(0x1e8)](),'filter':FilterRuleDefSchema[a167_0x123457(0x1e8)](),'limit':z['number']()[a167_0x123457(0x1e8)]()}));export const BehaviorConditionDefSchema=z[a167_0x123457(0x1e6)](()=>z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x1f9)](a167_0x123457(0x233)),'attribute':z[a167_0x123457(0x205)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a167_0x123457(0x1f0)]()[a167_0x123457(0x1e8)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a167_0x123457(0x205)]()[a167_0x123457(0x1e8)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a167_0x123457(0x1e8)](),'limit':z[a167_0x123457(0x1eb)]()[a167_0x123457(0x1e8)]()}));export const ColumnConditionDefSchema=z[a167_0x123457(0x208)]({'type':z['literal'](a167_0x123457(0x216)),'column':z[a167_0x123457(0x205)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a167_0x123457(0x1e6)](()=>z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x20f)]([a167_0x123457(0x229),'Or',a167_0x123457(0x213)]),'conditions':z[a167_0x123457(0x230)](ConditionDefSchema),'description':z[a167_0x123457(0x205)]()['optional'](),'expr':z[a167_0x123457(0x205)]()['optional']()}));function a167_0x4330(_0x2814d3,_0x121274){_0x2814d3=_0x2814d3-0x1e4;const _0xb07c44=a167_0xb07c();let _0x433068=_0xb07c44[_0x2814d3];return _0x433068;}export const SegmentRefConditionDefSchema=z['object']({'type':z[a167_0x123457(0x20f)]([a167_0x123457(0x219),a167_0x123457(0x232)]),'segment':z['string']()[a167_0x123457(0x236)](0x1,a167_0x123457(0x20b))});export const ConditionDefSchema=z[a167_0x123457(0x1e6)](()=>z[a167_0x123457(0x231)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a167_0x123457(0x1e6)](()=>z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x20f)]([a167_0x123457(0x229),'Or',a167_0x123457(0x213)]),'conditions':z['array'](ConditionDefSchema),'description':z[a167_0x123457(0x205)]()[a167_0x123457(0x1e8)](),'expr':z[a167_0x123457(0x205)]()['optional']()}));export const SegmentDefSchema=z[a167_0x123457(0x208)]({'type':z[a167_0x123457(0x1f9)](a167_0x123457(0x1e7))[a167_0x123457(0x1e8)](),'name':z[a167_0x123457(0x205)]()['min'](0x1,a167_0x123457(0x21c)),'description':z[a167_0x123457(0x205)]()[a167_0x123457(0x1e8)](),'folder':z[a167_0x123457(0x205)]()[a167_0x123457(0x1e8)](),'rule':RuleDefSchema[a167_0x123457(0x1e8)](),'kind':z[a167_0x123457(0x20f)]([a167_0x123457(0x22e),a167_0x123457(0x21b),a167_0x123457(0x1fb)])[a167_0x123457(0x1e8)](),'visible':z['boolean']()[a167_0x123457(0x1e8)](),'activations':z[a167_0x123457(0x230)](z['any']())[a167_0x123457(0x1e8)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a168_0x356603=a168_0x25d7;(function(_0x3e1c5e,_0x33cf1d){const _0x2e004e=a168_0x25d7,_0x17c44d=_0x3e1c5e();while(!![]){try{const _0x4676e0=-parseInt(_0x2e004e(0x208))/0x1+-parseInt(_0x2e004e(0x1ef))/0x2+parseInt(_0x2e004e(0x215))/0x3*(-parseInt(_0x2e004e(0x200))/0x4)+parseInt(_0x2e004e(0x20b))/0x5+-parseInt(_0x2e004e(0x204))/0x6+-parseInt(_0x2e004e(0x214))/0x7*(parseInt(_0x2e004e(0x1fe))/0x8)+-parseInt(_0x2e004e(0x1f4))/0x9*(-parseInt(_0x2e004e(0x1fa))/0xa);if(_0x4676e0===_0x33cf1d)break;else _0x17c44d['push'](_0x17c44d['shift']());}catch(_0xf30d59){_0x17c44d['push'](_0x17c44d['shift']());}}}(a168_0x5887,0x9f85a));import{z}from'zod';export const OperatorTypeSchema=z['enum'](['Equal',a168_0x356603(0x1d3),a168_0x356603(0x206),a168_0x356603(0x1ee),a168_0x356603(0x1f2),'In','Between','Regexp','IsNull',a168_0x356603(0x201),'TimeWithinNext',a168_0x356603(0x1e1),a168_0x356603(0x21a),a168_0x356603(0x1d6),a168_0x356603(0x21b)]);export const TimeUnitSchema=z[a168_0x356603(0x1f3)](['second',a168_0x356603(0x20e),a168_0x356603(0x1fc),a168_0x356603(0x1d4),a168_0x356603(0x21c),a168_0x356603(0x1f1),a168_0x356603(0x219)]);export const AggregationTypeSchema=z[a168_0x356603(0x1f3)](['Count','Sum','Average',a168_0x356603(0x1e7),a168_0x356603(0x1e8),'CountDistinct','First',a168_0x356603(0x1d5)]);const TemporalValueSchema=z[a168_0x356603(0x1e6)]([z[a168_0x356603(0x20d)]({'timestamp':z[a168_0x356603(0x1db)]()}),z[a168_0x356603(0x20d)]({'last':z[a168_0x356603(0x1e6)]([z[a168_0x356603(0x217)](),z[a168_0x356603(0x1e9)](z[a168_0x356603(0x1db)](),z['number']())]),'unit':z[a168_0x356603(0x1db)]()})]),OperatorValueSchema=z['union']([z[a168_0x356603(0x1db)](),z[a168_0x356603(0x217)](),z[a168_0x356603(0x1d7)](),TemporalValueSchema,z[a168_0x356603(0x20c)](z[a168_0x356603(0x1e6)]([z['string'](),z[a168_0x356603(0x217)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a168_0x356603(0x216),a168_0x356603(0x1d3),'GreaterEqual',a168_0x356603(0x206),a168_0x356603(0x1f2),'In',a168_0x356603(0x1e1),a168_0x356603(0x21a),'EndWith','Regexp',a168_0x356603(0x201),a168_0x356603(0x1ff)]),OPERATORS_REQUIRING_UNIT=new Set([a168_0x356603(0x201),a168_0x356603(0x1ff)]);export const OperatorDefSchema=z[a168_0x356603(0x20d)]({'type':OperatorTypeSchema,'not':z[a168_0x356603(0x1d7)]()[a168_0x356603(0x212)](),'value':OperatorValueSchema['optional'](),'min':z[a168_0x356603(0x1e6)]([z[a168_0x356603(0x217)](),z[a168_0x356603(0x1db)](),TemporalValueSchema])[a168_0x356603(0x212)](),'max':z[a168_0x356603(0x1e6)]([z[a168_0x356603(0x217)](),z[a168_0x356603(0x1db)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a168_0x356603(0x212)](),'duration':z[a168_0x356603(0x20d)]({'day':z['number']()[a168_0x356603(0x212)](),'week':z[a168_0x356603(0x217)]()['optional'](),'month':z['number']()[a168_0x356603(0x212)](),'year':z[a168_0x356603(0x217)]()['optional'](),'hour':z[a168_0x356603(0x217)]()[a168_0x356603(0x212)](),'minute':z[a168_0x356603(0x217)]()[a168_0x356603(0x212)](),'second':z[a168_0x356603(0x217)]()['optional']()})[a168_0x356603(0x212)](),'from':z['object']({'last':z[a168_0x356603(0x1e6)]([z[a168_0x356603(0x217)](),z[a168_0x356603(0x1db)]()]),'unit':TimeUnitSchema})[a168_0x356603(0x212)](),'reverse':z[a168_0x356603(0x1d7)]()[a168_0x356603(0x212)]()})[a168_0x356603(0x1f9)]((_0x1c6fdd,_0x18f77a)=>{const _0x1696ac=a168_0x356603;OPERATORS_REQUIRING_VALUE['has'](_0x1c6fdd[_0x1696ac(0x1f0)])&&(_0x1c6fdd['value']===undefined||_0x1c6fdd[_0x1696ac(0x1df)]===null)&&_0x18f77a[_0x1696ac(0x1d2)]({'code':_0x1696ac(0x1f8),'message':'Operator\x20\x27'+_0x1c6fdd[_0x1696ac(0x1f0)]+'\x27\x20requires\x20a\x20value','path':[_0x1696ac(0x1df)]}),_0x1c6fdd[_0x1696ac(0x1f0)]===_0x1696ac(0x1dc)&&_0x1c6fdd['min']===undefined&&_0x1c6fdd['max']===undefined&&_0x18f77a['addIssue']({'code':_0x1696ac(0x1f8),'message':_0x1696ac(0x209),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x1696ac(0x1f5)](_0x1c6fdd['type'])&&_0x1c6fdd[_0x1696ac(0x1df)]!==undefined&&!_0x1c6fdd[_0x1696ac(0x1dd)]&&_0x18f77a[_0x1696ac(0x1d2)]({'code':_0x1696ac(0x1f8),'message':'Operator\x20\x27'+_0x1c6fdd['type']+_0x1696ac(0x20f),'path':['unit'],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x1c6fdd[_0x1696ac(0x1f0)]==='TimeRange'&&(!_0x1c6fdd[_0x1696ac(0x1d8)]&&_0x18f77a[_0x1696ac(0x1d2)]({'code':'custom','message':_0x1696ac(0x1de),'path':[_0x1696ac(0x1d8)]}),!_0x1c6fdd[_0x1696ac(0x1e4)]&&_0x18f77a[_0x1696ac(0x1d2)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x1696ac(0x1e4)]}));});export const ArrayMatchingSchema=z[a168_0x356603(0x1e6)]([z['literal'](a168_0x356603(0x1e5)),z[a168_0x356603(0x205)]('all'),z[a168_0x356603(0x20d)]({'atLeast':z[a168_0x356603(0x217)]()}),z['object']({'atMost':z[a168_0x356603(0x217)]()}),z['object']({'exactly':z[a168_0x356603(0x217)]()})]);export const AggregationDefSchema=z['discriminatedUnion'](a168_0x356603(0x1f0),[z['object']({'type':z[a168_0x356603(0x1f3)]([a168_0x356603(0x1ea),a168_0x356603(0x1e7),a168_0x356603(0x1e8),a168_0x356603(0x213)]),'column':z[a168_0x356603(0x1db)](),'groupingColumns':z[a168_0x356603(0x20c)](z[a168_0x356603(0x1db)]())['optional']()}),z['object']({'type':z[a168_0x356603(0x205)](a168_0x356603(0x1e0)),'groupingColumns':z[a168_0x356603(0x20c)](z[a168_0x356603(0x1db)]())[a168_0x356603(0x212)]()}),z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x205)]('CountDistinct'),'columns':z[a168_0x356603(0x20c)](z[a168_0x356603(0x1db)]())}),z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x1f3)](['First',a168_0x356603(0x1d5)]),'column':z[a168_0x356603(0x1db)](),'orderColumn':z[a168_0x356603(0x1db)](),'groupingColumns':z[a168_0x356603(0x20c)](z['string']())[a168_0x356603(0x212)]()})]);export const TimeWindowDefSchema=z[a168_0x356603(0x20d)]({'duration':z[a168_0x356603(0x217)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a168_0x356603(0x201),a168_0x356603(0x1ff),'TimeRange']);export const FilterColumnConditionDefSchema=z[a168_0x356603(0x20d)]({'type':z['literal'](a168_0x356603(0x1fd)),'column':z[a168_0x356603(0x1db)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x356603(0x212)]()})[a168_0x356603(0x1f9)]((_0x3d84eb,_0x3f1477)=>{const _0xccef62=a168_0x356603,_0x1309ea=_0x3d84eb['operator'][_0xccef62(0x1f0)];_0x3d84eb[_0xccef62(0x1e2)]===_0xccef62(0x207)?!TIMESTAMP_OPERATORS['has'](_0x1309ea)&&_0x3f1477['addIssue']({'code':'custom','message':_0xccef62(0x203)+_0x1309ea+'\x27)','path':['operator',_0xccef62(0x1f0)]}):TIMESTAMP_OPERATORS['has'](_0x1309ea)&&_0x3f1477[_0xccef62(0x1d2)]({'code':'custom','message':'Operator\x20\x27'+_0x1309ea+_0xccef62(0x1ed),'path':['operator',_0xccef62(0x1f0)]});});function a168_0x25d7(_0x4ad2cb,_0x5f59cd){_0x4ad2cb=_0x4ad2cb-0x1d2;const _0x588757=a168_0x5887();let _0x25d772=_0x588757[_0x4ad2cb];return _0x25d772;}export const FilterRuleDefSchema=z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x205)](a168_0x356603(0x1ec)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a168_0x356603(0x202)](()=>z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x205)](a168_0x356603(0x1da)),'attribute':z[a168_0x356603(0x1db)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x356603(0x212)](),'exclude':z[a168_0x356603(0x1d7)]()['optional'](),'aggregation':AggregationDefSchema[a168_0x356603(0x212)](),'source':z[a168_0x356603(0x1db)]()[a168_0x356603(0x212)](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a168_0x356603(0x217)]()[a168_0x356603(0x212)]()}));export const BehaviorConditionDefSchema=z[a168_0x356603(0x202)](()=>z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x205)](a168_0x356603(0x1eb)),'attribute':z[a168_0x356603(0x1db)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x356603(0x212)](),'exclude':z[a168_0x356603(0x1d7)]()[a168_0x356603(0x212)](),'aggregation':AggregationDefSchema[a168_0x356603(0x212)](),'source':z[a168_0x356603(0x1db)]()[a168_0x356603(0x212)](),'filter':FilterRuleDefSchema[a168_0x356603(0x212)](),'timeWindow':TimeWindowDefSchema[a168_0x356603(0x212)](),'limit':z[a168_0x356603(0x217)]()[a168_0x356603(0x212)]()}));export const ColumnConditionDefSchema=z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x205)](a168_0x356603(0x1fd)),'column':z[a168_0x356603(0x1db)](),'operator':OperatorDefSchema});function a168_0x5887(){const _0x27c04b=['Behavior','And','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','GreaterEqual','1017614BPGUzI','type','month','LessEqual','enum','1954827DFggaa','has','min','batch','custom','superRefine','140gDIkPL','Segment\x20reference\x20must\x20not\x20be\x20empty','hour','Column','18376NtzWyC','TimeWithinNext','20JFpTWm','TimeWithinPast','lazy','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','3721422YUOFLH','literal','Less','timestamp','515270TFHEfG','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Segment\x20name\x20is\x20required','870735sgNxws','array','object','minute','\x27\x20requires\x20a\x20time\x20unit','Composite','include','optional','Average','658uZOLXv','420813ZcyZmz','Equal','number','realtime','year','StartWith','TimeRange','week','addIssue','Greater','day','Last','EndWith','boolean','duration','segment','Value','string','Between','unit','TimeRange\x20operator\x20requires\x20\x27duration\x27','value','Count','Contain','column','funnel_stage','from','any','union','Min','Max','record','Sum'];a168_0x5887=function(){return _0x27c04b;};return a168_0x5887();}export const CompositeConditionDefSchema=z[a168_0x356603(0x202)](()=>z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x1f3)]([a168_0x356603(0x1ec),'Or','Composite']),'conditions':z[a168_0x356603(0x20c)](ConditionDefSchema),'description':z[a168_0x356603(0x1db)]()[a168_0x356603(0x212)](),'expr':z[a168_0x356603(0x1db)]()[a168_0x356603(0x212)]()}));export const SegmentRefConditionDefSchema=z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x1f3)]([a168_0x356603(0x211),'exclude']),'segment':z['string']()['min'](0x1,a168_0x356603(0x1fb))});export const ConditionDefSchema=z[a168_0x356603(0x202)](()=>z[a168_0x356603(0x1e6)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a168_0x356603(0x202)](()=>z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x1f3)]([a168_0x356603(0x1ec),'Or',a168_0x356603(0x210)]),'conditions':z[a168_0x356603(0x20c)](ConditionDefSchema),'description':z[a168_0x356603(0x1db)]()['optional'](),'expr':z[a168_0x356603(0x1db)]()[a168_0x356603(0x212)]()}));export const SegmentDefSchema=z[a168_0x356603(0x20d)]({'type':z[a168_0x356603(0x205)](a168_0x356603(0x1d9))[a168_0x356603(0x212)](),'name':z[a168_0x356603(0x1db)]()[a168_0x356603(0x1f6)](0x1,a168_0x356603(0x20a)),'description':z[a168_0x356603(0x1db)]()['optional'](),'folder':z['string']()['optional'](),'rule':RuleDefSchema[a168_0x356603(0x212)](),'kind':z['enum']([a168_0x356603(0x1f7),a168_0x356603(0x218),a168_0x356603(0x1e3)])[a168_0x356603(0x212)](),'visible':z[a168_0x356603(0x1d7)]()['optional'](),'activations':z[a168_0x356603(0x20c)](z['any']())[a168_0x356603(0x212)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a169_0x4b9f5a=a169_0x1200;(function(_0x713e77,_0x16a969){const _0x2dddbf=a169_0x1200,_0x52939b=_0x713e77();while(!![]){try{const _0x3230f7=-parseInt(_0x2dddbf(0x1a0))/0x1*(parseInt(_0x2dddbf(0x196))/0x2)+parseInt(_0x2dddbf(0x197))/0x3*(-parseInt(_0x2dddbf(0x190))/0x4)+-parseInt(_0x2dddbf(0x18c))/0x5+parseInt(_0x2dddbf(0x1a6))/0x6*(parseInt(_0x2dddbf(0x19a))/0x7)+-parseInt(_0x2dddbf(0x198))/0x8*(-parseInt(_0x2dddbf(0x18b))/0x9)+parseInt(_0x2dddbf(0x18d))/0xa*(parseInt(_0x2dddbf(0x1a3))/0xb)+parseInt(_0x2dddbf(0x1a1))/0xc;if(_0x3230f7===_0x16a969)break;else _0x52939b['push'](_0x52939b['shift']());}catch(_0x2de87a){_0x52939b['push'](_0x52939b['shift']());}}}(a169_0x5d38,0xc318e));import{readFileSync}from'fs';import*as a169_0x2847e7 from'path';import*as a169_0x31eb95 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([a169_0x4b9f5a(0x1ab),'push']);function a169_0x5d38(){const _0x33e3ec=['length','83EtjWqI','15030960BAzHJq','utf-8','1507QHWPxz','campaign','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','1684038ZEMaqk','has','basename','result','YAML\x20parse\x20error:\x20','email','filterType','valid','type','template','segment','3699ujuHww','7087005eccblm','89770fnbPns','warnings','journey','101028MsRvvq','campaign_type','map','error','not\x20a\x20','toJSON','22510OmHFmo','33VADgWm','12952wEYPOA','YAML_PARSE_ERROR','7EqwsbK','object','parseDocument','relative','skipped'];a169_0x5d38=function(){return _0x33e3ec;};return a169_0x5d38();}function a169_0x1200(_0x183cfc,_0x90a9fe){_0x183cfc=_0x183cfc-0x189;const _0x5d38ae=a169_0x5d38();let _0x120013=_0x5d38ae[_0x183cfc];return _0x120013;}export function isJourneyDef(_0x3b2155){const _0x277135=a169_0x4b9f5a;return typeof _0x3b2155===_0x277135(0x19b)&&_0x3b2155!==null&&_0x277135(0x1ae)in _0x3b2155&&_0x3b2155[_0x277135(0x1ae)]===_0x277135(0x18f);}export function isCampaignDef(_0x33d45b){const _0x55185f=a169_0x4b9f5a;if(typeof _0x33d45b!==_0x55185f(0x19b)||_0x33d45b===null)return![];const _0x1556a3=_0x33d45b,_0x43ee0c=VALID_CAMPAIGN_TYPES[_0x55185f(0x1a7)](_0x1556a3[_0x55185f(0x191)]);if(_0x1556a3['type']===_0x55185f(0x1a4)&&_0x43ee0c)return!![];if(_0x43ee0c&&!_0x1556a3['type'])return!![];return![];}export function isTemplateDef(_0x13880f){const _0x3fa5c3=a169_0x4b9f5a;return typeof _0x13880f===_0x3fa5c3(0x19b)&&_0x13880f!==null&&_0x3fa5c3(0x1ae)in _0x13880f&&_0x13880f[_0x3fa5c3(0x1ae)]===_0x3fa5c3(0x189);}export function isValidationResult(_0x33ea8d){const _0x1e78e6=a169_0x4b9f5a;return!(_0x1e78e6(0x19e)in _0x33ea8d);}export function createParseErrorResult(_0x426cb1,_0x4c7a4a,_0x3288f1,_0x4dce44,_0x40d8ed=a169_0x4b9f5a(0x18a)){const _0x316272=a169_0x4b9f5a;return{'filePath':_0x426cb1,'relativePath':_0x4c7a4a,'source':_0x3288f1,'result':{'valid':![],'errors':[{'level':_0x316272(0x193),'path':'','code':_0x316272(0x199),'message':_0x4dce44}],'warnings':[]},'fileType':_0x40d8ed};}export function validateYamlFile(_0x102988,_0x3e7b0e,_0x5747b7={}){const _0x245f8a=a169_0x4b9f5a,_0x343df3=a169_0x2847e7[_0x245f8a(0x19d)](_0x3e7b0e,_0x102988)||a169_0x2847e7[_0x245f8a(0x1a8)](_0x102988);try{const _0x290dca=readFileSync(_0x102988,_0x245f8a(0x1a2)),_0x49db2c=a169_0x31eb95[_0x245f8a(0x19c)](_0x290dca),_0x3fe3b5=_0x49db2c[_0x245f8a(0x195)]();if(!_0x3fe3b5)return createParseErrorResult(_0x102988,_0x343df3,_0x290dca,_0x245f8a(0x1a5));let _0x3a89a2;if(isJourneyDef(_0x3fe3b5))_0x3a89a2=_0x245f8a(0x18f);else{if(isCampaignDef(_0x3fe3b5))_0x3a89a2=_0x245f8a(0x1a4);else isTemplateDef(_0x3fe3b5)?_0x3a89a2='template':_0x3a89a2=_0x245f8a(0x18a);}if(_0x5747b7['filterType']&&_0x3a89a2!==_0x5747b7[_0x245f8a(0x1ac)])return{'filePath':_0x102988,'relativePath':_0x343df3,'skipped':!![],'reason':_0x245f8a(0x194)+_0x5747b7[_0x245f8a(0x1ac)]};const _0x199b8d={'source':_0x290dca,'document':_0x49db2c};let _0x433276;if(_0x3a89a2===_0x245f8a(0x18f))_0x433276=validateJourneyDef(_0x3fe3b5,_0x199b8d);else{if(_0x3a89a2==='campaign')_0x433276=validateCampaignDef(_0x3fe3b5,_0x199b8d);else _0x3a89a2===_0x245f8a(0x189)?_0x433276=validateTemplateDef(_0x3fe3b5,_0x199b8d):_0x433276=validateSegmentDef(_0x3fe3b5,_0x199b8d);}return{'filePath':_0x102988,'relativePath':_0x343df3,'source':_0x290dca,'result':_0x433276,'fileType':_0x3a89a2};}catch(_0x4b38a7){const _0x14afa2=_0x4b38a7 instanceof Error?_0x4b38a7['message']:String(_0x4b38a7);return createParseErrorResult(_0x102988,_0x343df3,'',_0x245f8a(0x1aa)+_0x14afa2);}}export function validateYamlFiles(_0x41618e,_0x2fe873,_0xb5aa76={}){const _0x12aff5=a169_0x4b9f5a;return _0x41618e[_0x12aff5(0x192)](_0x107499=>validateYamlFile(_0x107499,_0x2fe873,_0xb5aa76));}export function calculateSummary(_0x5b9ce5){const _0x13571d=a169_0x4b9f5a;let _0x5a7c96=0x0,_0x3b71c1=0x0,_0x45557d=0x0,_0x5a6213=0x0;for(const _0xd4e914 of _0x5b9ce5){if(!isValidationResult(_0xd4e914)){_0x5a6213++;continue;}_0xd4e914[_0x13571d(0x1a9)][_0x13571d(0x1ad)]?_0x5a7c96++:_0x3b71c1++,_0x45557d+=_0xd4e914[_0x13571d(0x1a9)][_0x13571d(0x18e)][_0x13571d(0x19f)];}return{'validCount':_0x5a7c96,'invalidCount':_0x3b71c1,'warningCount':_0x45557d,'skippedCount':_0x5a6213,'hasErrors':_0x3b71c1>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a170_0x1d4e(){const _0x9f3e99=['range','issues','warnings','error','padStart','push','2530035mOWwqI','8HJvjal','\x20|\x20','\x27:\x20','red','line','map','486mtYppT','join','YAML\x20validation\x20error:\x20','split','data','5BHWKbT','column','flatMap','location','1658951peNNeM','contents','292326hWtYOE','success','Invalid\x20YAML:\x20expected\x20an\x20object','32394gYfedw','dim','6941fLezFm','yellow','7885HPORtK','cyan','number','length','8lNSrjR','path','getIn','toString','code','min','repeat','770868ezqbjz','pop','5210MkjccG','message','errors','object','level','invalid_union','safeParse'];a170_0x1d4e=function(){return _0x9f3e99;};return a170_0x1d4e();}(function(_0x11b5c7,_0x24efcd){const _0x1ca585=a170_0x23d5,_0x502eb6=_0x11b5c7();while(!![]){try{const _0xd7e919=parseInt(_0x1ca585(0x10f))/0x1*(parseInt(_0x1ca585(0x118))/0x2)+-parseInt(_0x1ca585(0x115))/0x3*(parseInt(_0x1ca585(0x120))/0x4)+parseInt(_0x1ca585(0x11c))/0x5*(-parseInt(_0x1ca585(0x10a))/0x6)+-parseInt(_0x1ca585(0x113))/0x7*(parseInt(_0x1ca585(0x104))/0x8)+parseInt(_0x1ca585(0x103))/0x9+parseInt(_0x1ca585(0x129))/0xa*(parseInt(_0x1ca585(0x11a))/0xb)+parseInt(_0x1ca585(0x127))/0xc;if(_0xd7e919===_0x24efcd)break;else _0x502eb6['push'](_0x502eb6['shift']());}catch(_0x1d58e1){_0x502eb6['push'](_0x502eb6['shift']());}}}(a170_0x1d4e,0x2fb94));import*as a170_0x4d5cb7 from'yaml';import a170_0x27880f from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x14fcaf,_0x4626d4,_0x841f2f){const _0x4032ac=a170_0x23d5;if(!_0x14fcaf||!_0x4626d4)return undefined;try{let _0x4e99ab=_0x14fcaf[_0x4032ac(0x122)](_0x841f2f,!![]),_0x3e1da9=[..._0x841f2f];while((!_0x4e99ab||typeof _0x4e99ab!==_0x4032ac(0x12c)||!('range'in _0x4e99ab)||!_0x4e99ab['range'])&&_0x3e1da9[_0x4032ac(0x11f)]>0x0){_0x3e1da9[_0x4032ac(0x128)](),_0x4e99ab=_0x3e1da9['length']>0x0?_0x14fcaf[_0x4032ac(0x122)](_0x3e1da9,!![]):_0x14fcaf[_0x4032ac(0x114)];}if(!_0x4e99ab||typeof _0x4e99ab!==_0x4032ac(0x12c)||!('range'in _0x4e99ab)||!_0x4e99ab['range'])return undefined;const [_0x4ba516]=_0x4e99ab[_0x4032ac(0x130)];return offsetToLocation(_0x4626d4,_0x4ba516);}catch{return undefined;}}export function offsetToLocation(_0x5e88fc,_0x2e5e26){const _0x3f1a18=a170_0x23d5;let _0xde325=0x1,_0x277cd1=0x1;for(let _0x55236=0x0;_0x55236<_0x2e5e26&&_0x55236<_0x5e88fc[_0x3f1a18(0x11f)];_0x55236++){_0x5e88fc[_0x55236]==='\x0a'?(_0xde325++,_0x277cd1=0x1):_0x277cd1++;}return{'line':_0xde325,'column':_0x277cd1,'offset':_0x2e5e26};}export function pathToArray(_0x5096de){const _0x3593cf=a170_0x23d5;if(!_0x5096de)return[];return _0x5096de[_0x3593cf(0x10d)]('.')[_0x3593cf(0x111)](_0x517f82=>{const _0x171176=_0x517f82['match'](/^(\w+)\[(\d+)\]$/);if(_0x171176)return[_0x171176[0x1],parseInt(_0x171176[0x2],0xa)];return[_0x517f82];});}export function formatZodPath(_0x1c748a){const _0x5c11bc=a170_0x23d5;let _0x5230f3='';for(const _0x2531ed of _0x1c748a){if(typeof _0x2531ed===_0x5c11bc(0x11e))_0x5230f3+='['+_0x2531ed+']';else{const _0x4eb616=String(_0x2531ed);_0x5230f3+=_0x5230f3?'.'+_0x4eb616:_0x4eb616;}}return _0x5230f3;}function a170_0x23d5(_0x36e991,_0x525a43){_0x36e991=_0x36e991-0x103;const _0x1d4eeb=a170_0x1d4e();let _0x23d5e7=_0x1d4eeb[_0x36e991];return _0x23d5e7;}export function flattenZodIssues(_0xdbfab3){const _0x5ac90b=a170_0x23d5,_0x3ecf98=[];for(const _0x3307ef of _0xdbfab3){if(_0x3307ef[_0x5ac90b(0x124)]===_0x5ac90b(0x12e)&&'errors'in _0x3307ef){const _0x3c0173=_0x3307ef[_0x5ac90b(0x12b)];let _0x53ed79=_0x3c0173[0x0]||[];for(const _0x4d6d99 of _0x3c0173){_0x4d6d99[_0x5ac90b(0x11f)]<_0x53ed79[_0x5ac90b(0x11f)]&&(_0x53ed79=_0x4d6d99);}const _0x429b72=_0x53ed79[_0x5ac90b(0x109)](_0x20aa0d=>({..._0x20aa0d,'path':[..._0x3307ef[_0x5ac90b(0x121)],..._0x20aa0d['path']]}));_0x3ecf98[_0x5ac90b(0x135)](...flattenZodIssues(_0x429b72));}else _0x3ecf98[_0x5ac90b(0x135)](_0x3307ef);}return _0x3ecf98;}export function safeParseYaml(_0x12f3c2,_0x2bf2e8){const _0x1e2ec8=a170_0x23d5,_0x42df34=a170_0x4d5cb7['parse'](_0x12f3c2);if(!_0x42df34||typeof _0x42df34!==_0x1e2ec8(0x12c))throw new Error(_0x1e2ec8(0x117));const _0x1b1cd1=_0x2bf2e8[_0x1e2ec8(0x12f)](_0x42df34);if(!_0x1b1cd1[_0x1e2ec8(0x116)]){const _0x2f6691=_0x1b1cd1[_0x1e2ec8(0x133)][_0x1e2ec8(0x131)][0x0],_0x43ef65=formatZodPath(_0x2f6691[_0x1e2ec8(0x121)]);throw new Error(_0x43ef65?'YAML\x20validation\x20error\x20at\x20\x27'+_0x43ef65+_0x1e2ec8(0x106)+_0x2f6691[_0x1e2ec8(0x12a)]:_0x1e2ec8(0x10c)+_0x2f6691[_0x1e2ec8(0x12a)]);}return _0x1b1cd1[_0x1e2ec8(0x10e)];}export function formatIssueWithContext(_0x31f1d3,_0x3864ae,_0x2e2aa6){const _0x26e387=a170_0x23d5,_0x1c3cad=[],_0x5f1e52=_0x31f1d3[_0x26e387(0x12d)]===_0x26e387(0x133),_0x7a37c7=_0x5f1e52?a170_0x27880f[_0x26e387(0x107)]:a170_0x27880f[_0x26e387(0x11b)],_0x488309=_0x5f1e52?a170_0x27880f['red']:a170_0x27880f[_0x26e387(0x11b)],_0x5e8f17=_0x2e2aa6?a170_0x27880f['cyan'](_0x2e2aa6+':'):'';if(_0x31f1d3[_0x26e387(0x112)]){const _0x114abd=a170_0x27880f[_0x26e387(0x11d)](_0x31f1d3[_0x26e387(0x112)][_0x26e387(0x108)]+':'+_0x31f1d3['location'][_0x26e387(0x110)]);_0x1c3cad[_0x26e387(0x135)](''+_0x5e8f17+_0x114abd+':\x20'+_0x7a37c7(_0x31f1d3[_0x26e387(0x12d)])+'\x20'+_0x488309('['+_0x31f1d3[_0x26e387(0x124)]+']'));}else _0x1c3cad[_0x26e387(0x135)](''+_0x5e8f17+a170_0x27880f[_0x26e387(0x119)](_0x31f1d3[_0x26e387(0x121)])+':\x20'+_0x7a37c7(_0x31f1d3[_0x26e387(0x12d)])+'\x20'+_0x488309('['+_0x31f1d3[_0x26e387(0x124)]+']'));_0x1c3cad['push'](_0x31f1d3[_0x26e387(0x12a)]);if(_0x31f1d3['location']&&_0x3864ae){const _0x56f370=_0x3864ae[_0x26e387(0x10d)]('\x0a'),{line:_0x6ba47,column:_0x2f70a0}=_0x31f1d3[_0x26e387(0x112)],_0x20403b=Math['max'](0x1,_0x6ba47-0x1),_0x4f5f6c=Math[_0x26e387(0x125)](_0x56f370[_0x26e387(0x11f)],_0x6ba47+0x1);_0x1c3cad[_0x26e387(0x135)]('');for(let _0x550f8a=_0x20403b;_0x550f8a<=_0x4f5f6c;_0x550f8a++){const _0x13670b=_0x56f370[_0x550f8a-0x1]||'',_0x1a007d=a170_0x27880f[_0x26e387(0x119)](_0x550f8a[_0x26e387(0x123)]()[_0x26e387(0x134)](0x4)),_0x32f7c7=a170_0x27880f['dim'](_0x26e387(0x105));if(_0x550f8a===_0x6ba47){_0x1c3cad[_0x26e387(0x135)]('\x20\x20'+_0x1a007d+_0x32f7c7+_0x7a37c7(_0x13670b));const _0x262442='\x20'[_0x26e387(0x126)](0x4+0x3+_0x2f70a0-0x1);_0x1c3cad['push']('\x20\x20'+_0x262442+_0x7a37c7('^'));}else _0x1c3cad[_0x26e387(0x135)]('\x20\x20'+_0x1a007d+_0x32f7c7+a170_0x27880f[_0x26e387(0x119)](_0x13670b));}}return _0x1c3cad['join']('\x0a');}export function formatValidationResult(_0x1e7209,_0x565086,_0x43b5df){const _0x570e40=a170_0x23d5,_0x27b27a=[];for(const _0x1934a4 of _0x1e7209[_0x570e40(0x12b)]){_0x27b27a[_0x570e40(0x135)](formatIssueWithContext(_0x1934a4,_0x565086,_0x43b5df)),_0x27b27a[_0x570e40(0x135)]('');}for(const _0x1aec83 of _0x1e7209[_0x570e40(0x132)]){_0x27b27a['push'](formatIssueWithContext(_0x1aec83,_0x565086,_0x43b5df)),_0x27b27a[_0x570e40(0x135)]('');}return _0x27b27a[_0x570e40(0x10b)]('\x0a');}
|
package/dist/sdk/segment.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides high-level API for CDP segments, folders, and activations
|
|
5
5
|
*/
|
|
6
6
|
import type { SDKContext } from './index.js';
|
|
7
|
-
import type { ParentSegment, SegmentResponse, SegmentFolder, SegmentFolderDetails, ActivationResponse, CreateActivationRequest, UpdateActivationRequest, ParentSegmentField, CreateParentSegmentRequest, CreateParentSegmentResponse, CreateSegmentRequest, CreateSegmentResponse, CreateJourneySegmentRequest, UpdateSegmentRequest, UpdateSegmentResponse, CreateSegmentFolderRequest, CreateSegmentFolderResponse, AudienceExecution, JourneyListItem } from './types/index.js';
|
|
7
|
+
import type { ParentSegment, SegmentResponse, SegmentFolder, SegmentFolderDetails, ActivationResponse, CreateActivationRequest, UpdateActivationRequest, ParentSegmentField, CreateParentSegmentRequest, CreateParentSegmentResponse, CreateSegmentRequest, CreateSegmentResponse, CreateJourneySegmentRequest, UpdateSegmentRequest, UpdateSegmentResponse, MoveSegmentResponse, CreateSegmentFolderRequest, CreateSegmentFolderResponse, AudienceExecution, JourneyListItem } from './types/index.js';
|
|
8
8
|
import type { SegmentTreeNode, SegmentRule } from './types/cdp.js';
|
|
9
9
|
import { type PullSegmentsResult, type PullSegmentsOptions } from './segment/pull-workflow.js';
|
|
10
10
|
import { type ParentSegmentDef } from './segment/parent-segment-yaml.js';
|
|
@@ -106,6 +106,33 @@ export declare class SegmentSDK {
|
|
|
106
106
|
* Works for ALL segment types including journey-type (kind=3).
|
|
107
107
|
*/
|
|
108
108
|
getSegmentEntity(segmentId: string): Promise<SegmentResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Move one segment to a different folder, safely. Convenience wrapper around
|
|
111
|
+
* {@link moveSegments} for the single-segment case.
|
|
112
|
+
*
|
|
113
|
+
* @param segmentId - Segment ID to move
|
|
114
|
+
* @param folderId - Target folder ID
|
|
115
|
+
*/
|
|
116
|
+
moveSegment(segmentId: string, folderId: string): Promise<MoveSegmentResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* Move one or more segments to a different folder, safely.
|
|
119
|
+
*
|
|
120
|
+
* Uses the v5 PATCH path, which sends only the target folder relationship and
|
|
121
|
+
* never the rule — so the move cannot wipe segment rules (the CS-13647 failure
|
|
122
|
+
* mode). Batch segments only; the API rejects others.
|
|
123
|
+
*
|
|
124
|
+
* Batch semantics (mirrors Claude Code's MultiEdit): every segment is read in
|
|
125
|
+
* a pre-flight pass BEFORE any write — if any segment is missing, nothing is
|
|
126
|
+
* moved. Then each is moved and its rule re-read and verified; on any rule
|
|
127
|
+
* drift the run stops and reports how many had already completed.
|
|
128
|
+
*
|
|
129
|
+
* @param segmentIds - Segment IDs to move (at least one)
|
|
130
|
+
* @param folderId - Target folder ID
|
|
131
|
+
* @param dryRun - If true, run the pre-flight checks and report what would
|
|
132
|
+
* move, but issue no writes (honors the global `--dry-run` flag)
|
|
133
|
+
* @returns One result per segment, in order
|
|
134
|
+
*/
|
|
135
|
+
moveSegments(segmentIds: string[], folderId: string, dryRun?: boolean): Promise<MoveSegmentResponse[]>;
|
|
109
136
|
/**
|
|
110
137
|
* List segment folders under a parent segment
|
|
111
138
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.d.ts","sourceRoot":"","sources":["../../src/sdk/segment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAA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