@bbearai/core 0.3.1 → 0.4.0
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.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +16 -0
- package/dist/index.mjs +16 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -187,6 +187,15 @@ interface TestGroup {
|
|
|
187
187
|
description?: string;
|
|
188
188
|
sortOrder: number;
|
|
189
189
|
}
|
|
190
|
+
/** Project role — a user role in the app under test (e.g., Owner, Manager) */
|
|
191
|
+
interface ProjectRole {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
slug: string;
|
|
195
|
+
color: string;
|
|
196
|
+
description?: string;
|
|
197
|
+
loginHint?: string;
|
|
198
|
+
}
|
|
190
199
|
interface QATrack {
|
|
191
200
|
id: string;
|
|
192
201
|
name: string;
|
|
@@ -212,6 +221,8 @@ interface TestAssignment {
|
|
|
212
221
|
track?: QATrack;
|
|
213
222
|
/** Test group (folder) this test belongs to */
|
|
214
223
|
group?: TestGroup;
|
|
224
|
+
/** Required app role for testing (e.g., Owner, Manager) */
|
|
225
|
+
role?: ProjectRole;
|
|
215
226
|
};
|
|
216
227
|
status: 'pending' | 'in_progress' | 'passed' | 'failed' | 'blocked' | 'skipped';
|
|
217
228
|
/** Reason for skipping (when status is 'skipped') */
|
|
@@ -1007,4 +1018,4 @@ declare function captureError(error: Error, errorInfo?: {
|
|
|
1007
1018
|
componentStack?: string;
|
|
1008
1019
|
};
|
|
1009
1020
|
|
|
1010
|
-
export { type AddFindingOptions, type AppContext, BugBearClient, type BugBearConfig, type BugBearReport, type BugBearTheme, type ChecklistItem, type ChecklistResult, type ConsoleLogEntry, type CoverageGap, type CoverageMatrixCell, type CoverageMatrixRow, type DeployChecklist, type DeviceInfo, type EndSessionOptions, type EnhancedBugContext, type FindingSeverity, type FindingType, type HostUserInfo, type MessageSenderType, type NetworkRequest, type PriorityFactors, type QAFinding, type QAHealthMetrics, type QAHealthScore, type QASession, type QASessionStatus, type QATrack, type RegressionEvent, type ReportStatus, type ReportType, type RoutePriority, type RouteTestStats, type RubricMode, type RubricResult, type Severity, type SkipReason, type StartSessionOptions, type SubmitFeedbackOptions, type TestAssignment, type TestFeedback, type TestGroup, type TestResult, type TestStep, type TestTemplate, type TesterInfo, type TesterMessage, type TesterProfileUpdate, type TesterThread, type ThreadPriority, type ThreadType, captureError, contextCapture, createBugBear };
|
|
1021
|
+
export { type AddFindingOptions, type AppContext, BugBearClient, type BugBearConfig, type BugBearReport, type BugBearTheme, type ChecklistItem, type ChecklistResult, type ConsoleLogEntry, type CoverageGap, type CoverageMatrixCell, type CoverageMatrixRow, type DeployChecklist, type DeviceInfo, type EndSessionOptions, type EnhancedBugContext, type FindingSeverity, type FindingType, type HostUserInfo, type MessageSenderType, type NetworkRequest, type PriorityFactors, type ProjectRole, type QAFinding, type QAHealthMetrics, type QAHealthScore, type QASession, type QASessionStatus, type QATrack, type RegressionEvent, type ReportStatus, type ReportType, type RoutePriority, type RouteTestStats, type RubricMode, type RubricResult, type Severity, type SkipReason, type StartSessionOptions, type SubmitFeedbackOptions, type TestAssignment, type TestFeedback, type TestGroup, type TestResult, type TestStep, type TestTemplate, type TesterInfo, type TesterMessage, type TesterProfileUpdate, type TesterThread, type ThreadPriority, type ThreadType, captureError, contextCapture, createBugBear };
|
package/dist/index.d.ts
CHANGED
|
@@ -187,6 +187,15 @@ interface TestGroup {
|
|
|
187
187
|
description?: string;
|
|
188
188
|
sortOrder: number;
|
|
189
189
|
}
|
|
190
|
+
/** Project role — a user role in the app under test (e.g., Owner, Manager) */
|
|
191
|
+
interface ProjectRole {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
slug: string;
|
|
195
|
+
color: string;
|
|
196
|
+
description?: string;
|
|
197
|
+
loginHint?: string;
|
|
198
|
+
}
|
|
190
199
|
interface QATrack {
|
|
191
200
|
id: string;
|
|
192
201
|
name: string;
|
|
@@ -212,6 +221,8 @@ interface TestAssignment {
|
|
|
212
221
|
track?: QATrack;
|
|
213
222
|
/** Test group (folder) this test belongs to */
|
|
214
223
|
group?: TestGroup;
|
|
224
|
+
/** Required app role for testing (e.g., Owner, Manager) */
|
|
225
|
+
role?: ProjectRole;
|
|
215
226
|
};
|
|
216
227
|
status: 'pending' | 'in_progress' | 'passed' | 'failed' | 'blocked' | 'skipped';
|
|
217
228
|
/** Reason for skipping (when status is 'skipped') */
|
|
@@ -1007,4 +1018,4 @@ declare function captureError(error: Error, errorInfo?: {
|
|
|
1007
1018
|
componentStack?: string;
|
|
1008
1019
|
};
|
|
1009
1020
|
|
|
1010
|
-
export { type AddFindingOptions, type AppContext, BugBearClient, type BugBearConfig, type BugBearReport, type BugBearTheme, type ChecklistItem, type ChecklistResult, type ConsoleLogEntry, type CoverageGap, type CoverageMatrixCell, type CoverageMatrixRow, type DeployChecklist, type DeviceInfo, type EndSessionOptions, type EnhancedBugContext, type FindingSeverity, type FindingType, type HostUserInfo, type MessageSenderType, type NetworkRequest, type PriorityFactors, type QAFinding, type QAHealthMetrics, type QAHealthScore, type QASession, type QASessionStatus, type QATrack, type RegressionEvent, type ReportStatus, type ReportType, type RoutePriority, type RouteTestStats, type RubricMode, type RubricResult, type Severity, type SkipReason, type StartSessionOptions, type SubmitFeedbackOptions, type TestAssignment, type TestFeedback, type TestGroup, type TestResult, type TestStep, type TestTemplate, type TesterInfo, type TesterMessage, type TesterProfileUpdate, type TesterThread, type ThreadPriority, type ThreadType, captureError, contextCapture, createBugBear };
|
|
1021
|
+
export { type AddFindingOptions, type AppContext, BugBearClient, type BugBearConfig, type BugBearReport, type BugBearTheme, type ChecklistItem, type ChecklistResult, type ConsoleLogEntry, type CoverageGap, type CoverageMatrixCell, type CoverageMatrixRow, type DeployChecklist, type DeviceInfo, type EndSessionOptions, type EnhancedBugContext, type FindingSeverity, type FindingType, type HostUserInfo, type MessageSenderType, type NetworkRequest, type PriorityFactors, type ProjectRole, type QAFinding, type QAHealthMetrics, type QAHealthScore, type QASession, type QASessionStatus, type QATrack, type RegressionEvent, type ReportStatus, type ReportType, type RoutePriority, type RouteTestStats, type RubricMode, type RubricResult, type Severity, type SkipReason, type StartSessionOptions, type SubmitFeedbackOptions, type TestAssignment, type TestFeedback, type TestGroup, type TestResult, type TestStep, type TestTemplate, type TesterInfo, type TesterMessage, type TesterProfileUpdate, type TesterThread, type ThreadPriority, type ThreadType, captureError, contextCapture, createBugBear };
|
package/dist/index.js
CHANGED
|
@@ -443,6 +443,14 @@ var BugBearClient = class {
|
|
|
443
443
|
name,
|
|
444
444
|
description,
|
|
445
445
|
sort_order
|
|
446
|
+
),
|
|
447
|
+
role:project_roles(
|
|
448
|
+
id,
|
|
449
|
+
name,
|
|
450
|
+
slug,
|
|
451
|
+
color,
|
|
452
|
+
description,
|
|
453
|
+
login_hint
|
|
446
454
|
)
|
|
447
455
|
)
|
|
448
456
|
`).eq("project_id", this.config.projectId).eq("tester_id", testerInfo.id).in("status", ["pending", "in_progress"]).order("created_at", { ascending: true }).limit(100);
|
|
@@ -480,6 +488,14 @@ var BugBearClient = class {
|
|
|
480
488
|
name: item.test_case.group.name,
|
|
481
489
|
description: item.test_case.group.description,
|
|
482
490
|
sortOrder: item.test_case.group.sort_order
|
|
491
|
+
} : void 0,
|
|
492
|
+
role: item.test_case.role ? {
|
|
493
|
+
id: item.test_case.role.id,
|
|
494
|
+
name: item.test_case.role.name,
|
|
495
|
+
slug: item.test_case.role.slug,
|
|
496
|
+
color: item.test_case.role.color,
|
|
497
|
+
description: item.test_case.role.description,
|
|
498
|
+
loginHint: item.test_case.role.login_hint
|
|
483
499
|
} : void 0
|
|
484
500
|
}
|
|
485
501
|
}));
|
package/dist/index.mjs
CHANGED
|
@@ -414,6 +414,14 @@ var BugBearClient = class {
|
|
|
414
414
|
name,
|
|
415
415
|
description,
|
|
416
416
|
sort_order
|
|
417
|
+
),
|
|
418
|
+
role:project_roles(
|
|
419
|
+
id,
|
|
420
|
+
name,
|
|
421
|
+
slug,
|
|
422
|
+
color,
|
|
423
|
+
description,
|
|
424
|
+
login_hint
|
|
417
425
|
)
|
|
418
426
|
)
|
|
419
427
|
`).eq("project_id", this.config.projectId).eq("tester_id", testerInfo.id).in("status", ["pending", "in_progress"]).order("created_at", { ascending: true }).limit(100);
|
|
@@ -451,6 +459,14 @@ var BugBearClient = class {
|
|
|
451
459
|
name: item.test_case.group.name,
|
|
452
460
|
description: item.test_case.group.description,
|
|
453
461
|
sortOrder: item.test_case.group.sort_order
|
|
462
|
+
} : void 0,
|
|
463
|
+
role: item.test_case.role ? {
|
|
464
|
+
id: item.test_case.role.id,
|
|
465
|
+
name: item.test_case.role.name,
|
|
466
|
+
slug: item.test_case.role.slug,
|
|
467
|
+
color: item.test_case.role.color,
|
|
468
|
+
description: item.test_case.role.description,
|
|
469
|
+
loginHint: item.test_case.role.login_hint
|
|
454
470
|
} : void 0
|
|
455
471
|
}
|
|
456
472
|
}));
|