type SimpleStub = () => T; type OverridableStub = (params?: Partial) => T; type OverridableStubList = (params?: T[]) => T[]; type TestStubFixtures = { AccessRequest: OverridableStub; AccountAppearance: OverridableStub; AccountEmails: OverridableStubList; ActivityFeed: OverridableStub; AllAuthenticators: SimpleStub; ApiApplication: OverridableStub; ApiKey: OverridableStub; ApiToken: OverridableStub; AsanaCreate: SimpleStub; AsanaPlugin: SimpleStub; AuditLogs: OverridableStubList; AuditLogsApiEventNames: SimpleStub; AuthProvider: OverridableStub; AuthProviders: OverridableStubList; Authenticators: SimpleStub; BitbucketIntegrationConfig: SimpleStub; Broadcast: OverridableStub; BuiltInSymbolSources: OverridableStubList; Commit: OverridableStub; CommitAuthor: OverridableStub; Config: OverridableStub; DataScrubbingRelayPiiConfig: SimpleStub; DebugFile: OverridableStub; DebugSymbols: OverridableStub; DetailedEvents: SimpleStub; DiscoverSavedQuery: OverridableStub; DocIntegration: OverridableStub; Entries: SimpleStub; Environments: OverridableStub; Event: OverridableStub; EventEntry: OverridableStub; EventEntryDebugMeta: OverridableStub; EventEntryStacktrace: OverridableStub; EventIdQueryResult: OverridableStub; EventStacktraceException: OverridableStub; EventStacktraceMessage: OverridableStub; Events: OverridableStubList; EventsStats: OverridableStub; ExceptionWithMeta: OverridableStubList; GitHubIntegration: OverridableStub; GitHubIntegrationProvider: OverridableStub; GitHubRepositoryProvider: OverridableStub; GithubIntegrationConfig: SimpleStub; GlobalSelection: OverridableStub; Group: OverridableStub; GroupStats: OverridableStub; GroupingConfigs: SimpleStub; GroupingEnhancements: SimpleStub; Groups: SimpleStub; Incident: OverridableStub; IncidentActivity: OverridableStub; IncidentStats: OverridableStub; IncidentTrigger: OverridableStub; InstallWizard: OverridableStub; JiraIntegration: OverridableStub; JiraIntegrationProvider: OverridableStub; Member: OverridableStub; Members: OverridableStubList; MetricRule: OverridableStub; MetricsField: OverridableStub; MetricsFieldByMeasurementRating: OverridableStub; MetricsFieldByTransactionStatus: OverridableStub; MetricsFieldsByMeasurementRating: OverridableStub; MetricsMeta: OverridableStub; MetricsSessionUserCountByStatusByRelease: SimpleStub; MetricsTotalCountByReleaseIn24h: SimpleStub; OrgOwnedApps: SimpleStub; Organization: OverridableStub; OrganizationEvent: OverridableStub; OrganizationIntegrations: OverridableStub; Organizations: OverridableStub; Outcomes: SimpleStub; OutcomesWithReason: SimpleStub; PhabricatorCreate: SimpleStub; PhabricatorPlugin: SimpleStub; PlatformExternalIssue: OverridableStub; Plugin: OverridableStub; PluginListConfig: SimpleStub; Plugins: OverridableStubList; Project: OverridableStub; ProjectAlertRule: OverridableStub; ProjectAlertRuleConfiguration: OverridableStub; ProjectDetails: OverridableStub; ProjectFilters: OverridableStubList; ProjectKeys: OverridableStubList; ProviderList: SimpleStub; PublishedApps: SimpleStub; PullRequest: OverridableStub; Release: (params?: any, healthParams?: any) => any; Repository: OverridableStub; RepositoryProjectPathConfig: OverridableStub; Search: OverridableStub; Searches: OverridableStubList; SentryApp: OverridableStub; SentryAppComponent: OverridableStub; SentryAppComponentAsync: OverridableStub; SentryAppComponentDependent: OverridableStub; SentryAppInstallation: OverridableStub; SentryAppInstalls: SimpleStub; SentryAppToken: OverridableStub; SentryAppWebhookRequest: OverridableStub; ServiceIncident: OverridableStub; SessionEmptyGroupedResponse: SimpleStub; SessionStatusCountByProjectInPeriod: SimpleStub; SessionStatusCountByReleaseInPeriod: SimpleStub; SessionTotalCountByProjectIn24h: SimpleStub; SessionUserCountByStatus: SimpleStub; SessionUserCountByStatus2: SimpleStub; SessionUserCountByStatusByRelease: SimpleStub; SessionUserStatusCountByProjectInPeriod: SimpleStub; SessionUserStatusCountByReleaseInPeriod: SimpleStub; SessionsField: OverridableStub; SesssionTotalCountByReleaseIn24h: SimpleStub; ShortIdQueryResult: OverridableStub; SourceMapArchive: OverridableStub; SourceMapArtifact: OverridableStub; Span: OverridableStub; Subscriptions: OverridableStubList; TagValues: OverridableStubList; Tags: OverridableStubList; Team: OverridableStub; TeamAlertsTriggered: SimpleStub; TeamIssuesBreakdown: SimpleStub; TeamIssuesReviewed: SimpleStub; TeamResolutionTime: SimpleStub; Tombstones: OverridableStubList; TraceError: OverridableStub; UpdateSdkAndEnableIntegrationSuggestion: SimpleStub; User: OverridableStub; UserDetails: OverridableStub; UserFeedback: OverridableStub; UserIdentity: SimpleStub; UserTotalCountByProjectIn24h: SimpleStub; UserTotalCountByReleaseIn24h: SimpleStub; VercelProvider: SimpleStub; VstsCreate: SimpleStub; VstsIntegrationProvider: OverridableStub; VstsPlugin: SimpleStub; // TODO: These need propertly typed still // Widget(queries = {...DEFAULT_QUERIES}, options) // Dashboard(widgets = DEFAULT_WIDGETS, props = {}) // AsanaAutocomplete(type = 'project', values = [DEFAULT_AUTOCOMPLETE]) // PhabricatorAutocomplete(type = 'project', values = null) // RoleList(params = [], fullAccess = false) // const MOCK_RESP_VERBOSE // const MOCK_RESP_ONLY_IGNORED_CONDITIONS_INVALID // const MOCK_RESP_INCONSISTENT_PLACEHOLDERS // const MOCK_RESP_INCONSISTENT_INTERVALS }; export default TestStubFixtures;