@uipath/uipath-typescript 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/assets/index.cjs +107 -6
- package/dist/assets/index.d.ts +12 -1
- package/dist/assets/index.mjs +107 -6
- package/dist/attachments/index.cjs +95 -3
- package/dist/attachments/index.mjs +95 -3
- package/dist/buckets/index.cjs +111 -6
- package/dist/buckets/index.d.ts +12 -1
- package/dist/buckets/index.mjs +111 -6
- package/dist/cases/index.cjs +434 -266
- package/dist/cases/index.d.ts +140 -3
- package/dist/cases/index.mjs +434 -266
- package/dist/conversational-agent/index.cjs +23 -1
- package/dist/conversational-agent/index.d.ts +117 -6
- package/dist/conversational-agent/index.mjs +23 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/entities/index.cjs +423 -0
- package/dist/entities/index.d.ts +441 -1
- package/dist/entities/index.mjs +422 -1
- package/dist/index.cjs +974 -293
- package/dist/index.d.ts +1150 -43
- package/dist/index.mjs +975 -294
- package/dist/index.umd.js +974 -293
- package/dist/jobs/index.cjs +12 -5
- package/dist/jobs/index.d.ts +12 -1
- package/dist/jobs/index.mjs +12 -5
- package/dist/maestro-processes/index.cjs +344 -243
- package/dist/maestro-processes/index.d.ts +189 -5
- package/dist/maestro-processes/index.mjs +344 -243
- package/dist/notifications/index.cjs +2012 -0
- package/dist/notifications/index.d.ts +615 -0
- package/dist/notifications/index.mjs +2010 -0
- package/dist/processes/index.cjs +93 -9
- package/dist/processes/index.d.ts +12 -1
- package/dist/processes/index.mjs +93 -9
- package/dist/queues/index.cjs +106 -5
- package/dist/queues/index.d.ts +12 -1
- package/dist/queues/index.mjs +106 -5
- package/dist/tasks/index.cjs +100 -4
- package/dist/tasks/index.mjs +100 -4
- package/dist/traces/index.cjs +218 -4
- package/dist/traces/index.d.ts +357 -22
- package/dist/traces/index.mjs +219 -5
- package/package.json +14 -4
package/dist/cases/index.d.ts
CHANGED
|
@@ -75,6 +75,12 @@ interface TimelineOptions {
|
|
|
75
75
|
* @default TimeInterval.Day
|
|
76
76
|
*/
|
|
77
77
|
groupBy?: TimeInterval;
|
|
78
|
+
/** Filter by package identifier */
|
|
79
|
+
packageId?: string;
|
|
80
|
+
/** Filter by package version */
|
|
81
|
+
version?: string;
|
|
82
|
+
/** Filter by one or more process keys. Pass `['<processKey>']` for a single process. */
|
|
83
|
+
processKeys?: string[];
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
86
|
* Final instance statuses returned by the instance status timeline endpoint.
|
|
@@ -102,6 +108,17 @@ interface InstanceStatusTimelineResponse {
|
|
|
102
108
|
/** Number of instances with this status in the time bucket */
|
|
103
109
|
count: number;
|
|
104
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Incident count within a specific time bucket.
|
|
113
|
+
*/
|
|
114
|
+
interface IncidentTimelineResponse {
|
|
115
|
+
/** Start of the time bucket in local timezone (ISO 8601, e.g. `"2026-05-04T00:00:00"`) */
|
|
116
|
+
startTime: string;
|
|
117
|
+
/** End of the time bucket in local timezone (ISO 8601, e.g. `"2026-05-11T00:00:00"`) */
|
|
118
|
+
endTime: string;
|
|
119
|
+
/** Number of incidents that occurred within this time bucket */
|
|
120
|
+
count: number;
|
|
121
|
+
}
|
|
105
122
|
/**
|
|
106
123
|
* Response for the top duration Insights endpoint
|
|
107
124
|
*/
|
|
@@ -510,7 +527,7 @@ interface CasesServiceModel {
|
|
|
510
527
|
*
|
|
511
528
|
* @param startTime - Start of the time range to query
|
|
512
529
|
* @param endTime - End of the time range to query
|
|
513
|
-
* @param options - Optional settings for time
|
|
530
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
514
531
|
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
515
532
|
*
|
|
516
533
|
* @example
|
|
@@ -537,11 +554,62 @@ interface CasesServiceModel {
|
|
|
537
554
|
*
|
|
538
555
|
* @example
|
|
539
556
|
* ```typescript
|
|
557
|
+
* // Filter to a specific case process
|
|
558
|
+
* const filtered = await cases.getInstanceStatusTimeline(startTime, endTime, {
|
|
559
|
+
* processKeys: ['<processKey>'],
|
|
560
|
+
* });
|
|
561
|
+
* ```
|
|
562
|
+
*
|
|
563
|
+
* @example
|
|
564
|
+
* ```typescript
|
|
540
565
|
* // Get all-time data (from Unix epoch to now)
|
|
541
566
|
* const allTime = await cases.getInstanceStatusTimeline(new Date(0), new Date());
|
|
542
567
|
* ```
|
|
543
568
|
*/
|
|
544
569
|
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<InstanceStatusTimelineResponse[]>;
|
|
570
|
+
/**
|
|
571
|
+
* Get incident counts aggregated by time bucket for case management processes.
|
|
572
|
+
*
|
|
573
|
+
* Returns time-grouped counts of incidents that occurred within each bucket,
|
|
574
|
+
* useful for rendering incident time-series charts. Use `groupBy` to control
|
|
575
|
+
* the time bucket size (hour, day, or week) — defaults to day if not provided.
|
|
576
|
+
*
|
|
577
|
+
* @param startTime - Start of the time range to query
|
|
578
|
+
* @param endTime - End of the time range to query
|
|
579
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
580
|
+
* @returns Promise resolving to an array of {@link IncidentTimelineResponse}
|
|
581
|
+
*
|
|
582
|
+
* @example
|
|
583
|
+
* ```typescript
|
|
584
|
+
* // Get daily incident counts for the last 7 days
|
|
585
|
+
* const now = new Date();
|
|
586
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
587
|
+
* const incidents = await cases.getIncidentsTimeline(sevenDaysAgo, now);
|
|
588
|
+
*
|
|
589
|
+
* for (const incident of incidents) {
|
|
590
|
+
* console.log(`${incident.startTime} → ${incident.endTime}: ${incident.count} incidents`);
|
|
591
|
+
* }
|
|
592
|
+
* ```
|
|
593
|
+
*
|
|
594
|
+
* @example
|
|
595
|
+
* ```typescript
|
|
596
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/cases';
|
|
597
|
+
*
|
|
598
|
+
* // Get weekly breakdown
|
|
599
|
+
* const incidents = await cases.getIncidentsTimeline(startTime, endTime, {
|
|
600
|
+
* groupBy: TimeInterval.Week,
|
|
601
|
+
* });
|
|
602
|
+
* ```
|
|
603
|
+
*
|
|
604
|
+
* @example
|
|
605
|
+
* ```typescript
|
|
606
|
+
* // Filter to a specific case process
|
|
607
|
+
* const filtered = await cases.getIncidentsTimeline(startTime, endTime, {
|
|
608
|
+
* processKeys: ['<processKey>'],
|
|
609
|
+
* });
|
|
610
|
+
* ```
|
|
611
|
+
*/
|
|
612
|
+
getIncidentsTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<IncidentTimelineResponse[]>;
|
|
545
613
|
/**
|
|
546
614
|
* Get the top 5 case processes ranked by total duration within a time range.
|
|
547
615
|
*
|
|
@@ -673,6 +741,24 @@ interface CaseMethods {
|
|
|
673
741
|
* @returns Promise resolving to {@link InstanceStats}
|
|
674
742
|
*/
|
|
675
743
|
getInstanceStats(startTime: Date, endTime: Date, packageVersion: string): Promise<InstanceStats>;
|
|
744
|
+
/**
|
|
745
|
+
* Get instance status counts aggregated by date for this case process.
|
|
746
|
+
*
|
|
747
|
+
* @param startTime - Start of the time range to query
|
|
748
|
+
* @param endTime - End of the time range to query
|
|
749
|
+
* @param options - Optional settings for filtering and time bucket granularity (processKey is auto-captured from this case)
|
|
750
|
+
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
751
|
+
*/
|
|
752
|
+
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: Omit<TimelineOptions, 'processKeys'>): Promise<InstanceStatusTimelineResponse[]>;
|
|
753
|
+
/**
|
|
754
|
+
* Get incident counts aggregated by time bucket for this case process.
|
|
755
|
+
*
|
|
756
|
+
* @param startTime - Start of the time range to query
|
|
757
|
+
* @param endTime - End of the time range to query
|
|
758
|
+
* @param options - Optional settings for filtering and time bucket granularity (processKey is auto-captured from this case)
|
|
759
|
+
* @returns Promise resolving to an array of {@link IncidentTimelineResponse}
|
|
760
|
+
*/
|
|
761
|
+
getIncidentsTimeline(startTime: Date, endTime: Date, options?: Omit<TimelineOptions, 'processKeys'>): Promise<IncidentTimelineResponse[]>;
|
|
676
762
|
}
|
|
677
763
|
type CaseGetAllWithMethodsResponse = CaseGetAllResponse & CaseMethods;
|
|
678
764
|
/**
|
|
@@ -2066,7 +2152,7 @@ declare class CasesService extends BaseService implements CasesServiceModel {
|
|
|
2066
2152
|
*
|
|
2067
2153
|
* @param startTime - Start of the time range to query
|
|
2068
2154
|
* @param endTime - End of the time range to query
|
|
2069
|
-
* @param options - Optional settings for time
|
|
2155
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
2070
2156
|
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
2071
2157
|
*
|
|
2072
2158
|
* @example
|
|
@@ -2093,11 +2179,62 @@ declare class CasesService extends BaseService implements CasesServiceModel {
|
|
|
2093
2179
|
*
|
|
2094
2180
|
* @example
|
|
2095
2181
|
* ```typescript
|
|
2182
|
+
* // Filter to a specific case process
|
|
2183
|
+
* const filtered = await cases.getInstanceStatusTimeline(startTime, endTime, {
|
|
2184
|
+
* processKeys: ['<processKey>'],
|
|
2185
|
+
* });
|
|
2186
|
+
* ```
|
|
2187
|
+
*
|
|
2188
|
+
* @example
|
|
2189
|
+
* ```typescript
|
|
2096
2190
|
* // Get all-time data (from Unix epoch to now)
|
|
2097
2191
|
* const allTime = await cases.getInstanceStatusTimeline(new Date(0), new Date());
|
|
2098
2192
|
* ```
|
|
2099
2193
|
*/
|
|
2100
2194
|
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<InstanceStatusTimelineResponse[]>;
|
|
2195
|
+
/**
|
|
2196
|
+
* Get incident counts aggregated by time bucket for case management processes.
|
|
2197
|
+
*
|
|
2198
|
+
* Returns time-grouped counts of incidents that occurred within each bucket,
|
|
2199
|
+
* useful for rendering incident time-series charts. Use `groupBy` to control
|
|
2200
|
+
* the time bucket size (hour, day, or week) — defaults to day if not provided.
|
|
2201
|
+
*
|
|
2202
|
+
* @param startTime - Start of the time range to query
|
|
2203
|
+
* @param endTime - End of the time range to query
|
|
2204
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
2205
|
+
* @returns Promise resolving to an array of {@link IncidentTimelineResponse}
|
|
2206
|
+
*
|
|
2207
|
+
* @example
|
|
2208
|
+
* ```typescript
|
|
2209
|
+
* // Get daily incident counts for the last 7 days
|
|
2210
|
+
* const now = new Date();
|
|
2211
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
2212
|
+
* const incidents = await cases.getIncidentsTimeline(sevenDaysAgo, now);
|
|
2213
|
+
*
|
|
2214
|
+
* for (const incident of incidents) {
|
|
2215
|
+
* console.log(`${incident.startTime} → ${incident.endTime}: ${incident.count} incidents`);
|
|
2216
|
+
* }
|
|
2217
|
+
* ```
|
|
2218
|
+
*
|
|
2219
|
+
* @example
|
|
2220
|
+
* ```typescript
|
|
2221
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/cases';
|
|
2222
|
+
*
|
|
2223
|
+
* // Get weekly breakdown
|
|
2224
|
+
* const incidents = await cases.getIncidentsTimeline(startTime, endTime, {
|
|
2225
|
+
* groupBy: TimeInterval.Week,
|
|
2226
|
+
* });
|
|
2227
|
+
* ```
|
|
2228
|
+
*
|
|
2229
|
+
* @example
|
|
2230
|
+
* ```typescript
|
|
2231
|
+
* // Filter to a specific case process
|
|
2232
|
+
* const filtered = await cases.getIncidentsTimeline(startTime, endTime, {
|
|
2233
|
+
* processKeys: ['<processKey>'],
|
|
2234
|
+
* });
|
|
2235
|
+
* ```
|
|
2236
|
+
*/
|
|
2237
|
+
getIncidentsTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<IncidentTimelineResponse[]>;
|
|
2101
2238
|
/**
|
|
2102
2239
|
* Get the top 10 case processes ranked by failure count within a time range.
|
|
2103
2240
|
*
|
|
@@ -2505,4 +2642,4 @@ declare class CaseInstancesService extends BaseService implements CaseInstancesS
|
|
|
2505
2642
|
}
|
|
2506
2643
|
|
|
2507
2644
|
export { CaseInstancesService as CaseInstances, CaseInstancesService, CasesService as Cases, CasesService, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, InstanceFinalStatus, InstanceStatus, SLADurationUnit, SlaSummaryStatus, StageTaskType, TimeInterval, createCaseInstanceWithMethods, createCaseWithMethods };
|
|
2508
|
-
export type { CaseAppConfig, CaseAppOverview, CaseGetAllResponse, CaseGetAllWithMethodsResponse, CaseGetStageResponse, CaseGetTopDurationResponse, CaseGetTopFaultedCountResponse, CaseGetTopRunCountResponse, CaseInstanceExecutionHistoryResponse, CaseInstanceGetAllOptions, CaseInstanceGetAllWithPaginationOptions, CaseInstanceGetResponse, CaseInstanceMethods, CaseInstanceOperationOptions, CaseInstanceOperationResponse, CaseInstanceReopenOptions, CaseInstanceRun, CaseInstanceSlaSummaryOptions, CaseInstanceStageSLAOptions, CaseInstanceStageSLAResponse, CaseInstanceStageSLAStage, CaseInstancesServiceModel, CaseMethods, CasesServiceModel, DurationStats, ElementExecutionMetadata, ElementGetTopFailedCountResponse, ElementRunMetadata, ElementStats, EscalationAction, EscalationRecipient, EscalationRule, EscalationTriggerMetadata, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, InstanceStats, InstanceStatusTimelineResponse, MaestroProcessStatsRequest, RawCaseInstanceGetResponse, SlaSummaryResponse, StageSLA, StageTask, TimelineOptions, TopQueryOptions };
|
|
2645
|
+
export type { CaseAppConfig, CaseAppOverview, CaseGetAllResponse, CaseGetAllWithMethodsResponse, CaseGetStageResponse, CaseGetTopDurationResponse, CaseGetTopFaultedCountResponse, CaseGetTopRunCountResponse, CaseInstanceExecutionHistoryResponse, CaseInstanceGetAllOptions, CaseInstanceGetAllWithPaginationOptions, CaseInstanceGetResponse, CaseInstanceMethods, CaseInstanceOperationOptions, CaseInstanceOperationResponse, CaseInstanceReopenOptions, CaseInstanceRun, CaseInstanceSlaSummaryOptions, CaseInstanceStageSLAOptions, CaseInstanceStageSLAResponse, CaseInstanceStageSLAStage, CaseInstancesServiceModel, CaseMethods, CasesServiceModel, DurationStats, ElementExecutionMetadata, ElementGetTopFailedCountResponse, ElementRunMetadata, ElementStats, EscalationAction, EscalationRecipient, EscalationRule, EscalationTriggerMetadata, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, IncidentTimelineResponse, InstanceStats, InstanceStatusTimelineResponse, MaestroProcessStatsRequest, RawCaseInstanceGetResponse, SlaSummaryResponse, StageSLA, StageTask, TimelineOptions, TopQueryOptions };
|