@rustrak/client 0.3.14 → 0.3.15
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 +0 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -9
- package/dist/index.d.ts +1 -9
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -499,9 +499,6 @@ declare const bulkUpdateIssuesSchema: z.ZodObject<{
|
|
|
499
499
|
declare const bulkDeleteIssuesSchema: z.ZodObject<{
|
|
500
500
|
ids: z.ZodArray<z.ZodString>;
|
|
501
501
|
}, z.core.$strip>;
|
|
502
|
-
declare const createDeploySchema: z.ZodObject<{
|
|
503
|
-
version: z.ZodString;
|
|
504
|
-
}, z.core.$strip>;
|
|
505
502
|
|
|
506
503
|
type Issue = z.infer<typeof issueSchema>;
|
|
507
504
|
type IssueStatus = z.infer<typeof issueStatusSchema>;
|
|
@@ -519,7 +516,6 @@ type CreateComment = z.infer<typeof createCommentSchema>;
|
|
|
519
516
|
type CreateUserReport = z.infer<typeof createUserReportSchema>;
|
|
520
517
|
type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
|
|
521
518
|
type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
|
|
522
|
-
type CreateDeploy = z.infer<typeof createDeploySchema>;
|
|
523
519
|
type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
|
|
524
520
|
|
|
525
521
|
declare const logSchema: z.ZodObject<{
|
|
@@ -991,10 +987,6 @@ declare class IssuesResource extends BaseResource {
|
|
|
991
987
|
}>;
|
|
992
988
|
listUserReports(projectId: number, issueId: string): Promise<UserReport[]>;
|
|
993
989
|
createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<UserReport>;
|
|
994
|
-
createDeploy(projectId: number, input: CreateDeploy): Promise<{
|
|
995
|
-
version: string;
|
|
996
|
-
finalized: number;
|
|
997
|
-
}>;
|
|
998
990
|
}
|
|
999
991
|
|
|
1000
992
|
declare class LogsResource extends BaseResource {
|
|
@@ -1136,4 +1128,4 @@ declare class ValidationError extends RustrakError {
|
|
|
1136
1128
|
getValidationDetails(): string;
|
|
1137
1129
|
}
|
|
1138
1130
|
|
|
1139
|
-
export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentTraceSummary, type AgentTracesOptions, 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
|
|
1131
|
+
export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentTraceSummary, type AgentTracesOptions, 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 CreateInvitation, type CreateNotificationChannel, type CreateProject, type CreateUserReport, type Event, type EventDetail, type GenAiBreakdownRow, 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 ListSpansOptions, 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 SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, 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
|
@@ -499,9 +499,6 @@ declare const bulkUpdateIssuesSchema: z.ZodObject<{
|
|
|
499
499
|
declare const bulkDeleteIssuesSchema: z.ZodObject<{
|
|
500
500
|
ids: z.ZodArray<z.ZodString>;
|
|
501
501
|
}, z.core.$strip>;
|
|
502
|
-
declare const createDeploySchema: z.ZodObject<{
|
|
503
|
-
version: z.ZodString;
|
|
504
|
-
}, z.core.$strip>;
|
|
505
502
|
|
|
506
503
|
type Issue = z.infer<typeof issueSchema>;
|
|
507
504
|
type IssueStatus = z.infer<typeof issueStatusSchema>;
|
|
@@ -519,7 +516,6 @@ type CreateComment = z.infer<typeof createCommentSchema>;
|
|
|
519
516
|
type CreateUserReport = z.infer<typeof createUserReportSchema>;
|
|
520
517
|
type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
|
|
521
518
|
type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
|
|
522
|
-
type CreateDeploy = z.infer<typeof createDeploySchema>;
|
|
523
519
|
type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
|
|
524
520
|
|
|
525
521
|
declare const logSchema: z.ZodObject<{
|
|
@@ -991,10 +987,6 @@ declare class IssuesResource extends BaseResource {
|
|
|
991
987
|
}>;
|
|
992
988
|
listUserReports(projectId: number, issueId: string): Promise<UserReport[]>;
|
|
993
989
|
createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<UserReport>;
|
|
994
|
-
createDeploy(projectId: number, input: CreateDeploy): Promise<{
|
|
995
|
-
version: string;
|
|
996
|
-
finalized: number;
|
|
997
|
-
}>;
|
|
998
990
|
}
|
|
999
991
|
|
|
1000
992
|
declare class LogsResource extends BaseResource {
|
|
@@ -1136,4 +1128,4 @@ declare class ValidationError extends RustrakError {
|
|
|
1136
1128
|
getValidationDetails(): string;
|
|
1137
1129
|
}
|
|
1138
1130
|
|
|
1139
|
-
export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentTraceSummary, type AgentTracesOptions, 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
|
|
1131
|
+
export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentTraceSummary, type AgentTracesOptions, 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 CreateInvitation, type CreateNotificationChannel, type CreateProject, type CreateUserReport, type Event, type EventDetail, type GenAiBreakdownRow, 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 ListSpansOptions, 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 SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, 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.js
CHANGED
|
@@ -334,9 +334,6 @@ var bulkUpdateIssuesSchema = z.object({
|
|
|
334
334
|
var bulkDeleteIssuesSchema = z.object({
|
|
335
335
|
ids: z.array(uuidSchema)
|
|
336
336
|
});
|
|
337
|
-
var createDeploySchema = z.object({
|
|
338
|
-
version: z.string()
|
|
339
|
-
});
|
|
340
337
|
var logSchema = z.object({
|
|
341
338
|
id: uuidSchema,
|
|
342
339
|
trace_id: z.string().nullable(),
|
|
@@ -1202,17 +1199,6 @@ var IssuesResource = class extends BaseResource {
|
|
|
1202
1199
|
}).json();
|
|
1203
1200
|
return this.validate(data, userReportSchema);
|
|
1204
1201
|
}
|
|
1205
|
-
/**
|
|
1206
|
-
* Record a deploy of a release, finalizing resolve-in-next-release issues.
|
|
1207
|
-
*/
|
|
1208
|
-
async createDeploy(projectId, input) {
|
|
1209
|
-
const validatedInput = this.validate(input, createDeploySchema);
|
|
1210
|
-
const data = await this.http.post(`api/projects/${projectId}/deploys`, { json: validatedInput }).json();
|
|
1211
|
-
return this.validate(
|
|
1212
|
-
data,
|
|
1213
|
-
z.object({ version: z.string(), finalized: z.number().int() })
|
|
1214
|
-
);
|
|
1215
|
-
}
|
|
1216
1202
|
};
|
|
1217
1203
|
|
|
1218
1204
|
// src/resources/logs.ts
|