Page MenuHomePhabricator

D9041.diff
No OneTemporary

D9041.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,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

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)

Event Timeline