Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3396803
D9041.id30621.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1021 B
Referenced Files
None
Subscribers
None
D9041.id30621.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,15 @@
+// @flow
+
+const reportsServiceURL = '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
Mon, Dec 2, 2:30 PM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607872
Default Alt Text
D9041.id30621.diff (1021 B)
Attached To
Mode
D9041: [lib] Add reports service facts
Attached
Detach File
Event Timeline
Log In to Comment