@rustrak/client 0.3.10 → 0.3.11
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/index.cjs +236 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +187 -1
- package/dist/index.d.ts +187 -1
- package/dist/index.js +236 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -323,6 +323,7 @@ interface ListIssuesOptions {
|
|
|
323
323
|
sort?: IssueSort;
|
|
324
324
|
order?: SortOrder;
|
|
325
325
|
filter?: IssueFilter;
|
|
326
|
+
q?: string;
|
|
326
327
|
}
|
|
327
328
|
interface ListEventsOptions {
|
|
328
329
|
order?: SortOrder;
|
|
@@ -382,27 +383,184 @@ declare const eventDetailSchema: z.ZodObject<{
|
|
|
382
383
|
type Event = z.infer<typeof eventSchema>;
|
|
383
384
|
type EventDetail = z.infer<typeof eventDetailSchema>;
|
|
384
385
|
|
|
386
|
+
declare const issueStatusSchema: z.ZodEnum<{
|
|
387
|
+
resolved: "resolved";
|
|
388
|
+
unresolved: "unresolved";
|
|
389
|
+
ignored: "ignored";
|
|
390
|
+
}>;
|
|
391
|
+
declare const issuePrioritySchema: z.ZodEnum<{
|
|
392
|
+
low: "low";
|
|
393
|
+
medium: "medium";
|
|
394
|
+
high: "high";
|
|
395
|
+
}>;
|
|
385
396
|
declare const issueSchema: z.ZodObject<{
|
|
386
397
|
id: z.ZodString;
|
|
387
398
|
project_id: z.ZodNumber;
|
|
388
399
|
short_id: z.ZodString;
|
|
389
400
|
title: z.ZodString;
|
|
390
401
|
value: z.ZodString;
|
|
402
|
+
culprit: z.ZodString;
|
|
403
|
+
logger: z.ZodString;
|
|
391
404
|
first_seen: z.ZodString;
|
|
392
405
|
last_seen: z.ZodString;
|
|
393
406
|
event_count: z.ZodNumber;
|
|
394
407
|
level: z.ZodNullable<z.ZodString>;
|
|
395
408
|
platform: z.ZodNullable<z.ZodString>;
|
|
409
|
+
status: z.ZodEnum<{
|
|
410
|
+
resolved: "resolved";
|
|
411
|
+
unresolved: "unresolved";
|
|
412
|
+
ignored: "ignored";
|
|
413
|
+
}>;
|
|
414
|
+
substatus: z.ZodNullable<z.ZodString>;
|
|
415
|
+
priority: z.ZodNullable<z.ZodEnum<{
|
|
416
|
+
low: "low";
|
|
417
|
+
medium: "medium";
|
|
418
|
+
high: "high";
|
|
419
|
+
}>>;
|
|
420
|
+
assigned_to: z.ZodNullable<z.ZodNumber>;
|
|
421
|
+
assignee_type: z.ZodNullable<z.ZodString>;
|
|
422
|
+
issue_type: z.ZodString;
|
|
423
|
+
issue_category: z.ZodString;
|
|
424
|
+
first_release: z.ZodString;
|
|
425
|
+
last_release: z.ZodString;
|
|
426
|
+
status_details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
427
|
+
user_report_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
428
|
+
is_bookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
is_subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
has_seen: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
user_count: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
trend: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
396
433
|
is_resolved: z.ZodBoolean;
|
|
397
434
|
is_muted: z.ZodBoolean;
|
|
398
435
|
}, z.core.$strip>;
|
|
399
436
|
declare const updateIssueStateSchema: z.ZodObject<{
|
|
437
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
438
|
+
resolved: "resolved";
|
|
439
|
+
unresolved: "unresolved";
|
|
440
|
+
ignored: "ignored";
|
|
441
|
+
}>, z.ZodLiteral<"resolvedInNextRelease">]>>;
|
|
442
|
+
substatus: z.ZodOptional<z.ZodString>;
|
|
443
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
444
|
+
low: "low";
|
|
445
|
+
medium: "medium";
|
|
446
|
+
high: "high";
|
|
447
|
+
}>>;
|
|
448
|
+
assigned_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
449
|
+
assignee_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
450
|
is_resolved: z.ZodOptional<z.ZodBoolean>;
|
|
401
451
|
is_muted: z.ZodOptional<z.ZodBoolean>;
|
|
402
452
|
}, z.core.$strip>;
|
|
453
|
+
declare const issueHashSchema: z.ZodObject<{
|
|
454
|
+
id: z.ZodNumber;
|
|
455
|
+
project_id: z.ZodNumber;
|
|
456
|
+
issue_id: z.ZodString;
|
|
457
|
+
grouping_key: z.ZodString;
|
|
458
|
+
grouping_key_hash: z.ZodString;
|
|
459
|
+
created_at: z.ZodString;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
declare const tagValueCountSchema: z.ZodObject<{
|
|
462
|
+
value: z.ZodString;
|
|
463
|
+
count: z.ZodNumber;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
declare const issueTagValueSchema: z.ZodObject<{
|
|
466
|
+
key: z.ZodString;
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
value: z.ZodString;
|
|
469
|
+
count: z.ZodNumber;
|
|
470
|
+
first_seen: z.ZodString;
|
|
471
|
+
last_seen: z.ZodString;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
declare const tagSummarySchema: z.ZodObject<{
|
|
474
|
+
key: z.ZodString;
|
|
475
|
+
total_values: z.ZodNumber;
|
|
476
|
+
top_values: z.ZodArray<z.ZodObject<{
|
|
477
|
+
value: z.ZodString;
|
|
478
|
+
count: z.ZodNumber;
|
|
479
|
+
}, z.core.$strip>>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
declare const issueAggregatesSchema: z.ZodObject<{
|
|
482
|
+
user_count: z.ZodNumber;
|
|
483
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
484
|
+
key: z.ZodString;
|
|
485
|
+
total_values: z.ZodNumber;
|
|
486
|
+
top_values: z.ZodArray<z.ZodObject<{
|
|
487
|
+
value: z.ZodString;
|
|
488
|
+
count: z.ZodNumber;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
}, z.core.$strip>>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
declare const issueStatsWindowSchema: z.ZodEnum<{
|
|
493
|
+
"24h": "24h";
|
|
494
|
+
"30d": "30d";
|
|
495
|
+
}>;
|
|
496
|
+
declare const issueStatsSchema: z.ZodObject<{
|
|
497
|
+
data: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
declare const activityEntrySchema: z.ZodObject<{
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
issue_id: z.ZodString;
|
|
502
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
503
|
+
type: z.ZodString;
|
|
504
|
+
data: z.ZodString;
|
|
505
|
+
created_at: z.ZodString;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
declare const userReportSchema: z.ZodObject<{
|
|
508
|
+
id: z.ZodString;
|
|
509
|
+
project_id: z.ZodNumber;
|
|
510
|
+
issue_id: z.ZodNullable<z.ZodString>;
|
|
511
|
+
event_id: z.ZodNullable<z.ZodString>;
|
|
512
|
+
name: z.ZodString;
|
|
513
|
+
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>;
|
|
514
|
+
comments: z.ZodString;
|
|
515
|
+
created_at: z.ZodString;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
declare const createCommentSchema: z.ZodObject<{
|
|
518
|
+
text: z.ZodString;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
declare const createUserReportSchema: z.ZodObject<{
|
|
521
|
+
name: z.ZodOptional<z.ZodString>;
|
|
522
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
523
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
524
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
declare const bulkUpdateIssuesSchema: z.ZodObject<{
|
|
527
|
+
ids: z.ZodArray<z.ZodString>;
|
|
528
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
529
|
+
resolved: "resolved";
|
|
530
|
+
unresolved: "unresolved";
|
|
531
|
+
ignored: "ignored";
|
|
532
|
+
}>, z.ZodLiteral<"resolvedInNextRelease">]>>;
|
|
533
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
low: "low";
|
|
535
|
+
medium: "medium";
|
|
536
|
+
high: "high";
|
|
537
|
+
}>>;
|
|
538
|
+
}, z.core.$strip>;
|
|
539
|
+
declare const bulkDeleteIssuesSchema: z.ZodObject<{
|
|
540
|
+
ids: z.ZodArray<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
declare const createDeploySchema: z.ZodObject<{
|
|
543
|
+
version: z.ZodString;
|
|
544
|
+
}, z.core.$strip>;
|
|
403
545
|
|
|
404
546
|
type Issue = z.infer<typeof issueSchema>;
|
|
547
|
+
type IssueStatus = z.infer<typeof issueStatusSchema>;
|
|
548
|
+
type IssuePriority = z.infer<typeof issuePrioritySchema>;
|
|
405
549
|
type UpdateIssueState = z.infer<typeof updateIssueStateSchema>;
|
|
550
|
+
type IssueHash = z.infer<typeof issueHashSchema>;
|
|
551
|
+
type TagValueCount = z.infer<typeof tagValueCountSchema>;
|
|
552
|
+
type IssueTagValue = z.infer<typeof issueTagValueSchema>;
|
|
553
|
+
type TagSummary = z.infer<typeof tagSummarySchema>;
|
|
554
|
+
type IssueAggregates = z.infer<typeof issueAggregatesSchema>;
|
|
555
|
+
type IssueStats = z.infer<typeof issueStatsSchema>;
|
|
556
|
+
type ActivityEntry = z.infer<typeof activityEntrySchema>;
|
|
557
|
+
type UserReport = z.infer<typeof userReportSchema>;
|
|
558
|
+
type CreateComment = z.infer<typeof createCommentSchema>;
|
|
559
|
+
type CreateUserReport = z.infer<typeof createUserReportSchema>;
|
|
560
|
+
type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
|
|
561
|
+
type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
|
|
562
|
+
type CreateDeploy = z.infer<typeof createDeploySchema>;
|
|
563
|
+
type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
|
|
406
564
|
|
|
407
565
|
declare const logSchema: z.ZodObject<{
|
|
408
566
|
id: z.ZodString;
|
|
@@ -713,7 +871,35 @@ declare class IssuesResource extends BaseResource {
|
|
|
713
871
|
list(projectId: number, options?: ListIssuesOptions): Promise<OffsetPaginatedResponse<Issue>>;
|
|
714
872
|
get(projectId: number, issueId: string): Promise<Issue>;
|
|
715
873
|
updateState(projectId: number, issueId: string, input: UpdateIssueState): Promise<Issue>;
|
|
874
|
+
resolveInNextRelease(projectId: number, issueId: string): Promise<Issue>;
|
|
716
875
|
delete(projectId: number, issueId: string): Promise<void>;
|
|
876
|
+
bulkUpdate(projectId: number, input: BulkUpdateIssues): Promise<{
|
|
877
|
+
updated: number;
|
|
878
|
+
}>;
|
|
879
|
+
bulkDelete(projectId: number, input: BulkDeleteIssues): Promise<{
|
|
880
|
+
deleted: number;
|
|
881
|
+
}>;
|
|
882
|
+
getHashes(projectId: number, issueId: string): Promise<IssueHash[]>;
|
|
883
|
+
getTagValues(projectId: number, issueId: string, key: string): Promise<IssueTagValue[]>;
|
|
884
|
+
getAggregates(projectId: number, issueId: string): Promise<IssueAggregates>;
|
|
885
|
+
getStats(projectId: number, issueId: string, window?: IssueStatsWindow): Promise<IssueStats>;
|
|
886
|
+
getActivity(projectId: number, issueId: string): Promise<ActivityEntry[]>;
|
|
887
|
+
addComment(projectId: number, issueId: string, input: CreateComment): Promise<ActivityEntry>;
|
|
888
|
+
setBookmark(projectId: number, issueId: string, enabled: boolean): Promise<{
|
|
889
|
+
is_bookmarked: boolean;
|
|
890
|
+
}>;
|
|
891
|
+
setSubscription(projectId: number, issueId: string, enabled: boolean): Promise<{
|
|
892
|
+
is_subscribed: boolean;
|
|
893
|
+
}>;
|
|
894
|
+
markSeen(projectId: number, issueId: string): Promise<{
|
|
895
|
+
has_seen: boolean;
|
|
896
|
+
}>;
|
|
897
|
+
listUserReports(projectId: number, issueId: string): Promise<UserReport[]>;
|
|
898
|
+
createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<UserReport>;
|
|
899
|
+
createDeploy(projectId: number, input: CreateDeploy): Promise<{
|
|
900
|
+
version: string;
|
|
901
|
+
finalized: number;
|
|
902
|
+
}>;
|
|
717
903
|
}
|
|
718
904
|
|
|
719
905
|
declare class LogsResource extends BaseResource {
|
|
@@ -842,4 +1028,4 @@ declare class ValidationError extends RustrakError {
|
|
|
842
1028
|
getValidationDetails(): string;
|
|
843
1029
|
}
|
|
844
1030
|
|
|
845
|
-
export { type AcceptInvitation, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueFilter, type IssueSort, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, ValidationError };
|
|
1031
|
+
export { type AcceptInvitation, type ActivityEntry, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type BulkDeleteIssues, type BulkUpdateIssues, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateDeploy, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type CreateUserReport, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueHash, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, ValidationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -323,6 +323,7 @@ interface ListIssuesOptions {
|
|
|
323
323
|
sort?: IssueSort;
|
|
324
324
|
order?: SortOrder;
|
|
325
325
|
filter?: IssueFilter;
|
|
326
|
+
q?: string;
|
|
326
327
|
}
|
|
327
328
|
interface ListEventsOptions {
|
|
328
329
|
order?: SortOrder;
|
|
@@ -382,27 +383,184 @@ declare const eventDetailSchema: z.ZodObject<{
|
|
|
382
383
|
type Event = z.infer<typeof eventSchema>;
|
|
383
384
|
type EventDetail = z.infer<typeof eventDetailSchema>;
|
|
384
385
|
|
|
386
|
+
declare const issueStatusSchema: z.ZodEnum<{
|
|
387
|
+
resolved: "resolved";
|
|
388
|
+
unresolved: "unresolved";
|
|
389
|
+
ignored: "ignored";
|
|
390
|
+
}>;
|
|
391
|
+
declare const issuePrioritySchema: z.ZodEnum<{
|
|
392
|
+
low: "low";
|
|
393
|
+
medium: "medium";
|
|
394
|
+
high: "high";
|
|
395
|
+
}>;
|
|
385
396
|
declare const issueSchema: z.ZodObject<{
|
|
386
397
|
id: z.ZodString;
|
|
387
398
|
project_id: z.ZodNumber;
|
|
388
399
|
short_id: z.ZodString;
|
|
389
400
|
title: z.ZodString;
|
|
390
401
|
value: z.ZodString;
|
|
402
|
+
culprit: z.ZodString;
|
|
403
|
+
logger: z.ZodString;
|
|
391
404
|
first_seen: z.ZodString;
|
|
392
405
|
last_seen: z.ZodString;
|
|
393
406
|
event_count: z.ZodNumber;
|
|
394
407
|
level: z.ZodNullable<z.ZodString>;
|
|
395
408
|
platform: z.ZodNullable<z.ZodString>;
|
|
409
|
+
status: z.ZodEnum<{
|
|
410
|
+
resolved: "resolved";
|
|
411
|
+
unresolved: "unresolved";
|
|
412
|
+
ignored: "ignored";
|
|
413
|
+
}>;
|
|
414
|
+
substatus: z.ZodNullable<z.ZodString>;
|
|
415
|
+
priority: z.ZodNullable<z.ZodEnum<{
|
|
416
|
+
low: "low";
|
|
417
|
+
medium: "medium";
|
|
418
|
+
high: "high";
|
|
419
|
+
}>>;
|
|
420
|
+
assigned_to: z.ZodNullable<z.ZodNumber>;
|
|
421
|
+
assignee_type: z.ZodNullable<z.ZodString>;
|
|
422
|
+
issue_type: z.ZodString;
|
|
423
|
+
issue_category: z.ZodString;
|
|
424
|
+
first_release: z.ZodString;
|
|
425
|
+
last_release: z.ZodString;
|
|
426
|
+
status_details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
427
|
+
user_report_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
428
|
+
is_bookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
is_subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
has_seen: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
user_count: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
trend: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
396
433
|
is_resolved: z.ZodBoolean;
|
|
397
434
|
is_muted: z.ZodBoolean;
|
|
398
435
|
}, z.core.$strip>;
|
|
399
436
|
declare const updateIssueStateSchema: z.ZodObject<{
|
|
437
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
438
|
+
resolved: "resolved";
|
|
439
|
+
unresolved: "unresolved";
|
|
440
|
+
ignored: "ignored";
|
|
441
|
+
}>, z.ZodLiteral<"resolvedInNextRelease">]>>;
|
|
442
|
+
substatus: z.ZodOptional<z.ZodString>;
|
|
443
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
444
|
+
low: "low";
|
|
445
|
+
medium: "medium";
|
|
446
|
+
high: "high";
|
|
447
|
+
}>>;
|
|
448
|
+
assigned_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
449
|
+
assignee_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
450
|
is_resolved: z.ZodOptional<z.ZodBoolean>;
|
|
401
451
|
is_muted: z.ZodOptional<z.ZodBoolean>;
|
|
402
452
|
}, z.core.$strip>;
|
|
453
|
+
declare const issueHashSchema: z.ZodObject<{
|
|
454
|
+
id: z.ZodNumber;
|
|
455
|
+
project_id: z.ZodNumber;
|
|
456
|
+
issue_id: z.ZodString;
|
|
457
|
+
grouping_key: z.ZodString;
|
|
458
|
+
grouping_key_hash: z.ZodString;
|
|
459
|
+
created_at: z.ZodString;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
declare const tagValueCountSchema: z.ZodObject<{
|
|
462
|
+
value: z.ZodString;
|
|
463
|
+
count: z.ZodNumber;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
declare const issueTagValueSchema: z.ZodObject<{
|
|
466
|
+
key: z.ZodString;
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
value: z.ZodString;
|
|
469
|
+
count: z.ZodNumber;
|
|
470
|
+
first_seen: z.ZodString;
|
|
471
|
+
last_seen: z.ZodString;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
declare const tagSummarySchema: z.ZodObject<{
|
|
474
|
+
key: z.ZodString;
|
|
475
|
+
total_values: z.ZodNumber;
|
|
476
|
+
top_values: z.ZodArray<z.ZodObject<{
|
|
477
|
+
value: z.ZodString;
|
|
478
|
+
count: z.ZodNumber;
|
|
479
|
+
}, z.core.$strip>>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
declare const issueAggregatesSchema: z.ZodObject<{
|
|
482
|
+
user_count: z.ZodNumber;
|
|
483
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
484
|
+
key: z.ZodString;
|
|
485
|
+
total_values: z.ZodNumber;
|
|
486
|
+
top_values: z.ZodArray<z.ZodObject<{
|
|
487
|
+
value: z.ZodString;
|
|
488
|
+
count: z.ZodNumber;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
}, z.core.$strip>>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
declare const issueStatsWindowSchema: z.ZodEnum<{
|
|
493
|
+
"24h": "24h";
|
|
494
|
+
"30d": "30d";
|
|
495
|
+
}>;
|
|
496
|
+
declare const issueStatsSchema: z.ZodObject<{
|
|
497
|
+
data: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
declare const activityEntrySchema: z.ZodObject<{
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
issue_id: z.ZodString;
|
|
502
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
503
|
+
type: z.ZodString;
|
|
504
|
+
data: z.ZodString;
|
|
505
|
+
created_at: z.ZodString;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
declare const userReportSchema: z.ZodObject<{
|
|
508
|
+
id: z.ZodString;
|
|
509
|
+
project_id: z.ZodNumber;
|
|
510
|
+
issue_id: z.ZodNullable<z.ZodString>;
|
|
511
|
+
event_id: z.ZodNullable<z.ZodString>;
|
|
512
|
+
name: z.ZodString;
|
|
513
|
+
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>;
|
|
514
|
+
comments: z.ZodString;
|
|
515
|
+
created_at: z.ZodString;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
declare const createCommentSchema: z.ZodObject<{
|
|
518
|
+
text: z.ZodString;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
declare const createUserReportSchema: z.ZodObject<{
|
|
521
|
+
name: z.ZodOptional<z.ZodString>;
|
|
522
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
523
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
524
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
declare const bulkUpdateIssuesSchema: z.ZodObject<{
|
|
527
|
+
ids: z.ZodArray<z.ZodString>;
|
|
528
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
529
|
+
resolved: "resolved";
|
|
530
|
+
unresolved: "unresolved";
|
|
531
|
+
ignored: "ignored";
|
|
532
|
+
}>, z.ZodLiteral<"resolvedInNextRelease">]>>;
|
|
533
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
low: "low";
|
|
535
|
+
medium: "medium";
|
|
536
|
+
high: "high";
|
|
537
|
+
}>>;
|
|
538
|
+
}, z.core.$strip>;
|
|
539
|
+
declare const bulkDeleteIssuesSchema: z.ZodObject<{
|
|
540
|
+
ids: z.ZodArray<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
declare const createDeploySchema: z.ZodObject<{
|
|
543
|
+
version: z.ZodString;
|
|
544
|
+
}, z.core.$strip>;
|
|
403
545
|
|
|
404
546
|
type Issue = z.infer<typeof issueSchema>;
|
|
547
|
+
type IssueStatus = z.infer<typeof issueStatusSchema>;
|
|
548
|
+
type IssuePriority = z.infer<typeof issuePrioritySchema>;
|
|
405
549
|
type UpdateIssueState = z.infer<typeof updateIssueStateSchema>;
|
|
550
|
+
type IssueHash = z.infer<typeof issueHashSchema>;
|
|
551
|
+
type TagValueCount = z.infer<typeof tagValueCountSchema>;
|
|
552
|
+
type IssueTagValue = z.infer<typeof issueTagValueSchema>;
|
|
553
|
+
type TagSummary = z.infer<typeof tagSummarySchema>;
|
|
554
|
+
type IssueAggregates = z.infer<typeof issueAggregatesSchema>;
|
|
555
|
+
type IssueStats = z.infer<typeof issueStatsSchema>;
|
|
556
|
+
type ActivityEntry = z.infer<typeof activityEntrySchema>;
|
|
557
|
+
type UserReport = z.infer<typeof userReportSchema>;
|
|
558
|
+
type CreateComment = z.infer<typeof createCommentSchema>;
|
|
559
|
+
type CreateUserReport = z.infer<typeof createUserReportSchema>;
|
|
560
|
+
type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
|
|
561
|
+
type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
|
|
562
|
+
type CreateDeploy = z.infer<typeof createDeploySchema>;
|
|
563
|
+
type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
|
|
406
564
|
|
|
407
565
|
declare const logSchema: z.ZodObject<{
|
|
408
566
|
id: z.ZodString;
|
|
@@ -713,7 +871,35 @@ declare class IssuesResource extends BaseResource {
|
|
|
713
871
|
list(projectId: number, options?: ListIssuesOptions): Promise<OffsetPaginatedResponse<Issue>>;
|
|
714
872
|
get(projectId: number, issueId: string): Promise<Issue>;
|
|
715
873
|
updateState(projectId: number, issueId: string, input: UpdateIssueState): Promise<Issue>;
|
|
874
|
+
resolveInNextRelease(projectId: number, issueId: string): Promise<Issue>;
|
|
716
875
|
delete(projectId: number, issueId: string): Promise<void>;
|
|
876
|
+
bulkUpdate(projectId: number, input: BulkUpdateIssues): Promise<{
|
|
877
|
+
updated: number;
|
|
878
|
+
}>;
|
|
879
|
+
bulkDelete(projectId: number, input: BulkDeleteIssues): Promise<{
|
|
880
|
+
deleted: number;
|
|
881
|
+
}>;
|
|
882
|
+
getHashes(projectId: number, issueId: string): Promise<IssueHash[]>;
|
|
883
|
+
getTagValues(projectId: number, issueId: string, key: string): Promise<IssueTagValue[]>;
|
|
884
|
+
getAggregates(projectId: number, issueId: string): Promise<IssueAggregates>;
|
|
885
|
+
getStats(projectId: number, issueId: string, window?: IssueStatsWindow): Promise<IssueStats>;
|
|
886
|
+
getActivity(projectId: number, issueId: string): Promise<ActivityEntry[]>;
|
|
887
|
+
addComment(projectId: number, issueId: string, input: CreateComment): Promise<ActivityEntry>;
|
|
888
|
+
setBookmark(projectId: number, issueId: string, enabled: boolean): Promise<{
|
|
889
|
+
is_bookmarked: boolean;
|
|
890
|
+
}>;
|
|
891
|
+
setSubscription(projectId: number, issueId: string, enabled: boolean): Promise<{
|
|
892
|
+
is_subscribed: boolean;
|
|
893
|
+
}>;
|
|
894
|
+
markSeen(projectId: number, issueId: string): Promise<{
|
|
895
|
+
has_seen: boolean;
|
|
896
|
+
}>;
|
|
897
|
+
listUserReports(projectId: number, issueId: string): Promise<UserReport[]>;
|
|
898
|
+
createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<UserReport>;
|
|
899
|
+
createDeploy(projectId: number, input: CreateDeploy): Promise<{
|
|
900
|
+
version: string;
|
|
901
|
+
finalized: number;
|
|
902
|
+
}>;
|
|
717
903
|
}
|
|
718
904
|
|
|
719
905
|
declare class LogsResource extends BaseResource {
|
|
@@ -842,4 +1028,4 @@ declare class ValidationError extends RustrakError {
|
|
|
842
1028
|
getValidationDetails(): string;
|
|
843
1029
|
}
|
|
844
1030
|
|
|
845
|
-
export { type AcceptInvitation, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueFilter, type IssueSort, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, ValidationError };
|
|
1031
|
+
export { type AcceptInvitation, type ActivityEntry, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type BulkDeleteIssues, type BulkUpdateIssues, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateDeploy, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type CreateUserReport, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueHash, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, ValidationError };
|