@camunda8/cli 2.0.0-alpha.10 → 2.0.0-alpha.12

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.
@@ -44,6 +44,7 @@ Usage: c8ctl <command> [resource] [options]
44
44
 
45
45
  Commands:
46
46
  list <resource> List resources (pi, pd, ut, inc, jobs, profiles)
47
+ search <resource> Search resources with filters (pi, pd, ut, inc, jobs, variables)
47
48
  get <resource> <key> Get resource by key (pi, pd, inc, topology, form)
48
49
  create <resource> Create resource (pi)
49
50
  cancel <resource> <key> Cancel resource (pi)
@@ -81,6 +82,38 @@ Flags:
81
82
  --version, -v Show version
82
83
  --help, -h Show help
83
84
 
85
+ Search Flags:
86
+ --bpmnProcessId <id> Filter by process definition ID
87
+ --processDefinitionKey <key> Filter by process definition key
88
+ --processInstanceKey <key> Filter by process instance key
89
+ --parentProcessInstanceKey <key> Filter by parent process instance key
90
+ --state <state> Filter by state (ACTIVE, COMPLETED, etc.)
91
+ --name <name> Filter by name (variables, process definitions)
92
+ --key <key> Filter by key
93
+ --assignee <user> Filter by assignee (user tasks)
94
+ --elementId <id> Filter by element ID (user tasks)
95
+ --errorType <type> Filter by error type (incidents)
96
+ --errorMessage <msg> Filter by error message (incidents)
97
+ --type <type> Filter by type (jobs)
98
+ --value <value> Filter by variable value
99
+ --scopeKey <key> Filter by scope key (variables)
100
+ --fullValue Return full variable values (default: truncated)
101
+
102
+ Wildcard Search:
103
+ String filters support wildcards: * (any chars) and ? (single char).
104
+ Example: --name='*main*' matches all names containing "main".
105
+
106
+ Case-Insensitive Search (--i prefix):
107
+ --iname <pattern> Case-insensitive --name filter
108
+ --iid <pattern> Case-insensitive --bpmnProcessId filter
109
+ --iassignee <pattern> Case-insensitive --assignee filter
110
+ --ierrorMessage <pattern> Case-insensitive --errorMessage filter
111
+ --itype <pattern> Case-insensitive --type filter
112
+ --ivalue <pattern> Case-insensitive --value filter
113
+ Prefix any string filter with 'i' for case-insensitive matching.
114
+ Wildcards (* and ?) are supported. Filtering is applied client-side.
115
+ Example: --iname='*ORDER*' matches "order", "Order", "ORDER", etc.
116
+
84
117
  Resource Aliases:
85
118
  pi = process-instance(s)
86
119
  pd = process-definition(s)
@@ -91,6 +124,18 @@ Resource Aliases:
91
124
  Examples:
92
125
  c8ctl list pi List process instances
93
126
  c8ctl list pd List process definitions
127
+ c8ctl search pi --state=ACTIVE Search for active process instances
128
+ c8ctl search pd --bpmnProcessId=myProcess Search process definitions by ID
129
+ c8ctl search pd --name='*main*' Search process definitions with wildcard
130
+ c8ctl search ut --assignee=john Search user tasks assigned to john
131
+ c8ctl search inc --state=ACTIVE Search for active incidents
132
+ c8ctl search jobs --type=myJobType Search jobs by type
133
+ c8ctl search jobs --type='*service*' Search jobs with type containing "service"
134
+ c8ctl search variables --name=myVar Search for variables by name
135
+ c8ctl search variables --value=foo Search for variables by value
136
+ c8ctl search variables --processInstanceKey=123 --fullValue Search variables with full values
137
+ c8ctl search pd --iname='*order*' Case-insensitive search by name
138
+ c8ctl search ut --iassignee=John Case-insensitive search by assignee
94
139
  c8ctl get pi 123456 Get process instance by key
95
140
  c8ctl get pi 123456 --variables Get process instance with variables
96
141
  c8ctl get pd 123456 Get process definition by key
@@ -117,6 +162,16 @@ For detailed help on specific commands with all available flags:
117
162
  c8ctl help create Show all create resources and their flags
118
163
  c8ctl help complete Show all complete resources and their flags
119
164
  c8ctl help await Show await command with all flags
165
+ c8ctl help search Show all search resources and their flags
166
+ c8ctl help deploy Show deploy command with all flags
167
+ c8ctl help run Show run command with all flags
168
+ c8ctl help watch Show watch command with all flags
169
+ c8ctl help cancel Show cancel command with all flags
170
+ c8ctl help resolve Show resolve command with all flags
171
+ c8ctl help fail Show fail command with all flags
172
+ c8ctl help activate Show activate command with all flags
173
+ c8ctl help publish Show publish command with all flags
174
+ c8ctl help correlate Show correlate command with all flags
120
175
  `.trim());
121
176
  }
122
177
  /**
@@ -125,6 +180,7 @@ For detailed help on specific commands with all available flags:
125
180
  export function showVerbResources(verb) {
126
181
  const resources = {
127
182
  list: 'process-instances (pi), process-definitions (pd), user-tasks (ut), incidents (inc), jobs, profiles, plugins',
183
+ search: 'process-instances (pi), process-definitions (pd), user-tasks (ut), incidents (inc), jobs, variables',
128
184
  get: 'process-instance (pi), process-definition (pd), incident (inc), topology, form',
129
185
  create: 'process-instance (pi)',
130
186
  complete: 'user-task (ut), job',
@@ -144,6 +200,7 @@ export function showVerbResources(verb) {
144
200
  use: 'profile, tenant',
145
201
  output: 'json, text',
146
202
  completion: 'bash, zsh, fish',
203
+ help: 'list, get, create, complete, await, search, deploy, run, watch, cancel, resolve, fail, activate, publish, correlate',
147
204
  };
148
205
  const available = resources[verb];
149
206
  if (available) {
@@ -335,6 +392,329 @@ Examples:
335
392
  c8ctl create pi --id=order-process --awaitCompletion
336
393
  `.trim());
337
394
  }
395
+ /**
396
+ * Show detailed help for search command
397
+ */
398
+ export function showSearchHelp() {
399
+ console.log(`
400
+ c8ctl search - Search resources with filters
401
+
402
+ Usage: c8ctl search <resource> [flags]
403
+
404
+ Resources and their available flags:
405
+
406
+ process-instances (pi)
407
+ --bpmnProcessId <id> Filter by process definition ID
408
+ --iid <pattern> Case-insensitive --bpmnProcessId filter
409
+ --processDefinitionKey <key> Filter by process definition key
410
+ --state <state> Filter by state (ACTIVE, COMPLETED, etc.)
411
+ --key <key> Filter by key
412
+ --parentProcessInstanceKey <key> Filter by parent process instance key
413
+ --profile <name> Use specific profile
414
+
415
+ process-definitions (pd)
416
+ --bpmnProcessId <id> Filter by process definition ID
417
+ --iid <pattern> Case-insensitive --bpmnProcessId filter
418
+ --name <name> Filter by name
419
+ --iname <pattern> Case-insensitive --name filter
420
+ --key <key> Filter by key
421
+ --profile <name> Use specific profile
422
+
423
+ user-tasks (ut)
424
+ --state <state> Filter by state (CREATED, COMPLETED, etc.)
425
+ --assignee <user> Filter by assignee
426
+ --iassignee <pattern> Case-insensitive --assignee filter
427
+ --processInstanceKey <key> Filter by process instance key
428
+ --processDefinitionKey <key> Filter by process definition key
429
+ --elementId <id> Filter by element ID
430
+ --profile <name> Use specific profile
431
+
432
+ incidents (inc)
433
+ --state <state> Filter by state (ACTIVE, RESOLVED, etc.)
434
+ --processInstanceKey <key> Filter by process instance key
435
+ --processDefinitionKey <key> Filter by process definition key
436
+ --bpmnProcessId <id> Filter by process definition ID
437
+ --iid <pattern> Case-insensitive --bpmnProcessId filter
438
+ --errorType <type> Filter by error type
439
+ --errorMessage <msg> Filter by error message
440
+ --ierrorMessage <pattern> Case-insensitive --errorMessage filter
441
+ --profile <name> Use specific profile
442
+
443
+ jobs
444
+ --state <state> Filter by state (ACTIVATABLE, ACTIVATED, etc.)
445
+ --type <type> Filter by job type
446
+ --itype <pattern> Case-insensitive --type filter
447
+ --processInstanceKey <key> Filter by process instance key
448
+ --processDefinitionKey <key> Filter by process definition key
449
+ --profile <name> Use specific profile
450
+
451
+ variables
452
+ --name <name> Filter by variable name
453
+ --iname <pattern> Case-insensitive --name filter
454
+ --value <value> Filter by variable value
455
+ --ivalue <pattern> Case-insensitive --value filter
456
+ --processInstanceKey <key> Filter by process instance key
457
+ --scopeKey <key> Filter by scope key
458
+ --fullValue Return full variable values (default: truncated)
459
+ --profile <name> Use specific profile
460
+
461
+ Wildcard Search:
462
+ String filters support wildcards: * (any chars) and ? (single char).
463
+ Example: --name='*main*' matches all names containing "main".
464
+
465
+ Case-Insensitive Search:
466
+ Prefix any string filter with 'i' for case-insensitive matching.
467
+ Wildcards (* and ?) are supported. Filtering is applied client-side.
468
+ Example: --iname='*ORDER*' matches "order", "Order", "ORDER", etc.
469
+
470
+ Examples:
471
+ c8ctl search pi --state=ACTIVE
472
+ c8ctl search pi --bpmnProcessId=order-process
473
+ c8ctl search pd --name='*main*'
474
+ c8ctl search pd --iname='*order*'
475
+ c8ctl search ut --assignee=john.doe
476
+ c8ctl search ut --iassignee=John
477
+ c8ctl search inc --state=ACTIVE --processInstanceKey=123456
478
+ c8ctl search jobs --type=email-service
479
+ c8ctl search jobs --itype='*SERVICE*'
480
+ c8ctl search variables --name=orderId
481
+ c8ctl search variables --value=12345 --fullValue
482
+ `.trim());
483
+ }
484
+ /**
485
+ * Show detailed help for deploy command
486
+ */
487
+ export function showDeployHelp() {
488
+ console.log(`
489
+ c8ctl deploy - Deploy BPMN, DMN, and form files
490
+
491
+ Usage: c8ctl deploy [path...] [flags]
492
+
493
+ Description:
494
+ Deploy BPMN process definitions, DMN decision tables, and forms to Camunda 8.
495
+ Automatically discovers all deployable files in the specified paths.
496
+ If no path is provided, deploys from the current directory.
497
+
498
+ Flags:
499
+ --profile <name> Use specific profile
500
+
501
+ Supported File Types:
502
+ - BPMN files (.bpmn)
503
+ - DMN files (.dmn)
504
+ - Form files (.form)
505
+
506
+ Building Blocks:
507
+ Folders containing '_bb-' in their name are treated as building blocks
508
+ and are deployed before regular processes.
509
+
510
+ Examples:
511
+ c8ctl deploy Deploy all files in current directory
512
+ c8ctl deploy ./src Deploy all files in ./src directory
513
+ c8ctl deploy ./process.bpmn Deploy a specific BPMN file
514
+ c8ctl deploy ./src ./forms Deploy from multiple directories
515
+ c8ctl deploy --profile=prod Deploy using specific profile
516
+ `.trim());
517
+ }
518
+ /**
519
+ * Show detailed help for run command
520
+ */
521
+ export function showRunHelp() {
522
+ console.log(`
523
+ c8ctl run - Deploy and start a process
524
+
525
+ Usage: c8ctl run <path> [flags]
526
+
527
+ Description:
528
+ Deploys a BPMN file and immediately creates a process instance from it.
529
+ This is a convenience command that combines deploy and create operations.
530
+
531
+ Flags:
532
+ --profile <name> Use specific profile
533
+ --variables <json> Process variables as JSON string
534
+
535
+ Examples:
536
+ c8ctl run ./my-process.bpmn
537
+ c8ctl run ./my-process.bpmn --variables='{"orderId":"12345"}'
538
+ c8ctl run ./my-process.bpmn --profile=prod
539
+ `.trim());
540
+ }
541
+ /**
542
+ * Show detailed help for watch command
543
+ */
544
+ export function showWatchHelp() {
545
+ console.log(`
546
+ c8ctl watch - Watch files for changes and auto-deploy
547
+
548
+ Usage: c8ctl watch [path...] [flags]
549
+
550
+ Alias: w
551
+
552
+ Description:
553
+ Watches BPMN, DMN, and form files for changes and automatically deploys them.
554
+ Useful during development for rapid iteration.
555
+ If no path is provided, watches the current directory.
556
+
557
+ Flags:
558
+ --profile <name> Use specific profile
559
+
560
+ Supported File Types:
561
+ - BPMN files (.bpmn)
562
+ - DMN files (.dmn)
563
+ - Form files (.form)
564
+
565
+ Examples:
566
+ c8ctl watch Watch current directory
567
+ c8ctl watch ./src Watch ./src directory
568
+ c8ctl watch ./src ./forms Watch multiple directories
569
+ c8ctl w ./src Use short alias
570
+ c8ctl watch --profile=dev Watch using specific profile
571
+ `.trim());
572
+ }
573
+ /**
574
+ * Show detailed help for cancel command
575
+ */
576
+ export function showCancelHelp() {
577
+ console.log(`
578
+ c8ctl cancel - Cancel a resource
579
+
580
+ Usage: c8ctl cancel <resource> <key> [flags]
581
+
582
+ Resources and their available flags:
583
+
584
+ process-instance (pi) <key>
585
+ --profile <name> Use specific profile
586
+
587
+ Examples:
588
+ c8ctl cancel pi 2251799813685249
589
+ c8ctl cancel pi 2251799813685249 --profile=prod
590
+ `.trim());
591
+ }
592
+ /**
593
+ * Show detailed help for resolve command
594
+ */
595
+ export function showResolveHelp() {
596
+ console.log(`
597
+ c8ctl resolve - Resolve an incident
598
+
599
+ Usage: c8ctl resolve incident <key> [flags]
600
+
601
+ Alias: inc for incident
602
+
603
+ Description:
604
+ Resolves an incident by its key. This marks the incident as resolved
605
+ and allows the process instance to continue.
606
+
607
+ Flags:
608
+ --profile <name> Use specific profile
609
+
610
+ Examples:
611
+ c8ctl resolve inc 2251799813685251
612
+ c8ctl resolve incident 2251799813685251
613
+ c8ctl resolve inc 2251799813685251 --profile=prod
614
+ `.trim());
615
+ }
616
+ /**
617
+ * Show detailed help for fail command
618
+ */
619
+ export function showFailHelp() {
620
+ console.log(`
621
+ c8ctl fail - Fail a job
622
+
623
+ Usage: c8ctl fail job <key> [flags]
624
+
625
+ Description:
626
+ Marks a job as failed with optional error message and retry count.
627
+
628
+ Flags:
629
+ --profile <name> Use specific profile
630
+ --retries <num> Number of retries remaining (default: 0)
631
+ --errorMessage <msg> Error message describing the failure
632
+
633
+ Examples:
634
+ c8ctl fail job 2251799813685252
635
+ c8ctl fail job 2251799813685252 --retries=3
636
+ c8ctl fail job 2251799813685252 --errorMessage="Connection timeout"
637
+ c8ctl fail job 2251799813685252 --retries=2 --errorMessage="Temporary failure"
638
+ `.trim());
639
+ }
640
+ /**
641
+ * Show detailed help for activate command
642
+ */
643
+ export function showActivateHelp() {
644
+ console.log(`
645
+ c8ctl activate - Activate jobs by type
646
+
647
+ Usage: c8ctl activate jobs <type> [flags]
648
+
649
+ Description:
650
+ Activates jobs of a specific type for processing by a worker.
651
+
652
+ Flags:
653
+ --profile <name> Use specific profile
654
+ --maxJobsToActivate <num> Maximum number of jobs to activate (default: 10)
655
+ --timeout <ms> Job lock timeout in milliseconds (default: 60000)
656
+ --worker <name> Worker name (default: "c8ctl")
657
+
658
+ Examples:
659
+ c8ctl activate jobs email-service
660
+ c8ctl activate jobs payment-processor --maxJobsToActivate=5
661
+ c8ctl activate jobs data-sync --timeout=120000 --worker=my-worker
662
+ c8ctl activate jobs batch-job --maxJobsToActivate=100 --profile=prod
663
+ `.trim());
664
+ }
665
+ /**
666
+ * Show detailed help for publish command
667
+ */
668
+ export function showPublishHelp() {
669
+ console.log(`
670
+ c8ctl publish - Publish a message
671
+
672
+ Usage: c8ctl publish message <name> [flags]
673
+
674
+ Alias: msg for message
675
+
676
+ Description:
677
+ Publishes a message to Camunda 8 for message correlation.
678
+
679
+ Flags:
680
+ --profile <name> Use specific profile
681
+ --correlationKey <key> Correlation key for the message
682
+ --variables <json> Message variables as JSON string
683
+ --timeToLive <ms> Message time-to-live in milliseconds
684
+
685
+ Examples:
686
+ c8ctl publish msg payment-received
687
+ c8ctl publish message order-confirmed --correlationKey=order-123
688
+ c8ctl publish msg invoice-paid --variables='{"amount":1000}'
689
+ c8ctl publish msg notification --correlationKey=user-456 --timeToLive=30000
690
+ `.trim());
691
+ }
692
+ /**
693
+ * Show detailed help for correlate command
694
+ */
695
+ export function showCorrelateHelp() {
696
+ console.log(`
697
+ c8ctl correlate - Correlate a message
698
+
699
+ Usage: c8ctl correlate message <name> [flags]
700
+
701
+ Alias: msg for message
702
+
703
+ Description:
704
+ Correlates a message to a specific process instance.
705
+
706
+ Flags:
707
+ --profile <name> Use specific profile
708
+ --correlationKey <key> Correlation key for the message (required)
709
+ --variables <json> Message variables as JSON string
710
+ --timeToLive <ms> Message time-to-live in milliseconds
711
+
712
+ Examples:
713
+ c8ctl correlate msg payment-received --correlationKey=order-123
714
+ c8ctl correlate message order-confirmed --correlationKey=order-456 --variables='{"status":"confirmed"}'
715
+ c8ctl correlate msg invoice-paid --correlationKey=inv-789 --timeToLive=60000
716
+ `.trim());
717
+ }
338
718
  /**
339
719
  * Show detailed help for specific commands
340
720
  */
@@ -355,6 +735,37 @@ export function showCommandHelp(command) {
355
735
  case 'await':
356
736
  showAwaitHelp();
357
737
  break;
738
+ case 'search':
739
+ showSearchHelp();
740
+ break;
741
+ case 'deploy':
742
+ showDeployHelp();
743
+ break;
744
+ case 'run':
745
+ showRunHelp();
746
+ break;
747
+ case 'watch':
748
+ case 'w':
749
+ showWatchHelp();
750
+ break;
751
+ case 'cancel':
752
+ showCancelHelp();
753
+ break;
754
+ case 'resolve':
755
+ showResolveHelp();
756
+ break;
757
+ case 'fail':
758
+ showFailHelp();
759
+ break;
760
+ case 'activate':
761
+ showActivateHelp();
762
+ break;
763
+ case 'publish':
764
+ showPublishHelp();
765
+ break;
766
+ case 'correlate':
767
+ showCorrelateHelp();
768
+ break;
358
769
  default:
359
770
  console.log(`\nNo detailed help available for: ${command}`);
360
771
  console.log('Run "c8ctl help" for general usage information.');
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,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AC;AACV,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM;YACT,YAAY,EAAE,CAAC;YACf,MAAM;QACR,KAAK,KAAK;YACR,WAAW,EAAE,CAAC;YACd,MAAM;QACR,KAAK,QAAQ;YACX,cAAc,EAAE,CAAC;YACjB,MAAM;QACR,KAAK,UAAU;YACb,gBAAgB,EAAE,CAAC;YACnB,MAAM;QACR,KAAK,OAAO;YACV,aAAa,EAAE,CAAC;YAChB,MAAM;QACR,KAAK,QAAQ;YACX,cAAc,EAAE,CAAC;YACjB,MAAM;QACR,KAAK,QAAQ;YACX,cAAc,EAAE,CAAC;YACjB,MAAM;QACR,KAAK,KAAK;YACR,WAAW,EAAE,CAAC;YACd,MAAM;QACR,KAAK,OAAO,CAAC;QACb,KAAK,GAAG;YACN,aAAa,EAAE,CAAC;YAChB,MAAM;QACR,KAAK,QAAQ;YACX,cAAc,EAAE,CAAC;YACjB,MAAM;QACR,KAAK,SAAS;YACZ,eAAe,EAAE,CAAC;YAClB,MAAM;QACR,KAAK,MAAM;YACT,YAAY,EAAE,CAAC;YACf,MAAM;QACR,KAAK,UAAU;YACb,gBAAgB,EAAE,CAAC;YACnB,MAAM;QACR,KAAK,SAAS;YACZ,eAAe,EAAE,CAAC;YAClB,MAAM;QACR,KAAK,WAAW;YACd,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACR;YACE,OAAO,CAAC,GAAG,CAAC,qCAAqC,OAAO,EAAE,CAAC,CAAC;YAC5D,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IACnE,CAAC;AACH,CAAC"}
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Search commands
3
+ */
4
+ export type SearchResult = {
5
+ items: Array<Record<string, unknown>>;
6
+ total?: number;
7
+ };
8
+ /**
9
+ * Detect wildcard characters (* or ?) in a string value and return
10
+ * a $like filter object for the API. Returns the plain string for exact match.
11
+ *
12
+ * Supported wildcards (per Camunda REST API LikeFilter):
13
+ * * — matches zero, one, or multiple characters
14
+ * ? — matches exactly one character
15
+ * Escape with backslash: \* or \?
16
+ */
17
+ export declare const hasUnescapedWildcard: (value: string) => boolean;
18
+ export declare const toStringFilter: (value: string) => string | {
19
+ $like: string;
20
+ };
21
+ /**
22
+ * Convert a wildcard pattern (* and ?) to a case-insensitive RegExp.
23
+ * Handles escaped wildcards (\* and \?).
24
+ */
25
+ export declare const wildcardToRegex: (pattern: string) => RegExp;
26
+ /**
27
+ * Test if a value matches a wildcard pattern case-insensitively.
28
+ * Without wildcards, performs exact case-insensitive match.
29
+ */
30
+ export declare const matchesCaseInsensitive: (value: string | undefined | null, pattern: string) => boolean;
31
+ /**
32
+ * Search process definitions
33
+ */
34
+ export declare function searchProcessDefinitions(options: {
35
+ profile?: string;
36
+ processDefinitionId?: string;
37
+ name?: string;
38
+ version?: number;
39
+ key?: string;
40
+ iProcessDefinitionId?: string;
41
+ iName?: string;
42
+ }): Promise<SearchResult | undefined>;
43
+ /**
44
+ * Search process instances
45
+ */
46
+ export declare function searchProcessInstances(options: {
47
+ profile?: string;
48
+ processDefinitionId?: string;
49
+ processDefinitionKey?: string;
50
+ state?: string;
51
+ key?: string;
52
+ parentProcessInstanceKey?: string;
53
+ iProcessDefinitionId?: string;
54
+ }): Promise<SearchResult | undefined>;
55
+ /**
56
+ * Search user tasks
57
+ */
58
+ export declare function searchUserTasks(options: {
59
+ profile?: string;
60
+ state?: string;
61
+ assignee?: string;
62
+ processInstanceKey?: string;
63
+ processDefinitionKey?: string;
64
+ elementId?: string;
65
+ iAssignee?: string;
66
+ }): Promise<SearchResult | undefined>;
67
+ /**
68
+ * Search incidents
69
+ */
70
+ export declare function searchIncidents(options: {
71
+ profile?: string;
72
+ state?: string;
73
+ processInstanceKey?: string;
74
+ processDefinitionKey?: string;
75
+ processDefinitionId?: string;
76
+ errorType?: string;
77
+ errorMessage?: string;
78
+ iErrorMessage?: string;
79
+ iProcessDefinitionId?: string;
80
+ }): Promise<SearchResult | undefined>;
81
+ /**
82
+ * Search jobs
83
+ */
84
+ export declare function searchJobs(options: {
85
+ profile?: string;
86
+ state?: string;
87
+ type?: string;
88
+ processInstanceKey?: string;
89
+ processDefinitionKey?: string;
90
+ iType?: string;
91
+ }): Promise<SearchResult | undefined>;
92
+ /**
93
+ * Search variables
94
+ */
95
+ export declare function searchVariables(options: {
96
+ profile?: string;
97
+ name?: string;
98
+ value?: string;
99
+ processInstanceKey?: string;
100
+ scopeKey?: string;
101
+ fullValue?: boolean;
102
+ iName?: string;
103
+ iValue?: string;
104
+ }): Promise<SearchResult | undefined>;
105
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/commands/search.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,OAC1B,CAAC;AAE5B,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CACf,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAejD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,EAAE,SAAS,MAAM,KAAG,OAG1F,CAAC;AAKF;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAAE;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CA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