Page MenuHomePhabricator

D9041.id30621.diff
No OneTemporary

D9041.id30621.diff

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

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)

Event Timeline