Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3387270
D9041.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9041.diff
View Options
diff --git a/lib/facts/reports-service.js b/lib/facts/reports-service.js
new file mode 100644
--- /dev/null
+++ b/lib/facts/reports-service.js
@@ -0,0 +1,19 @@
+// @flow
+
+import { isDev } from '../utils/dev-utils.js';
+
+const reportsServiceURL: string = isDev
+ ? 'https://reports.staging.commtechnologies.org'
+ : 'https://reports.commtechnologies.org';
+
+type ReportsServiceHTTPEndpoint = {
+ +path: '/reports',
+ +method: 'POST',
+};
+
+const sendReportEndpoint: ReportsServiceHTTPEndpoint = Object.freeze({
+ path: `/reports`,
+ method: 'POST',
+});
+
+export { reportsServiceURL, sendReportEndpoint };
diff --git a/lib/types/report-types.js b/lib/types/report-types.js
--- a/lib/types/report-types.js
+++ b/lib/types/report-types.js
@@ -188,6 +188,15 @@
+id: string,
};
+// Reports Service specific types
+export type ReportsServiceSendReportsRequest =
+ | ClientReportCreationRequest
+ | $ReadOnlyArray<ClientReportCreationRequest>;
+export type ReportsServiceSendReportsResponse = {
+ +reportIDs: $ReadOnlyArray<string>,
+};
+
+// Keyserver specific types
type ReportInfo = {
+id: string,
+viewerID: string,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 8:33 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600281
Default Alt Text
D9041.diff (1 KB)
Attached To
Mode
D9041: [lib] Add reports service facts
Attached
Detach File
Event Timeline
Log In to Comment