Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawk.api",
"version": "1.1.28",
"version": "1.1.29",
"main": "index.ts",
"license": "UNLICENSED",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
/**
* @typedef {Object} EventPayload
* @property {string} title - event title
* @property {DateTime} timestamp - event datetime
* @property {Number} level - event severity level
* @property {EventBacktraceFrame[]} [backtrace] - event stack array from the latest call to the earliest
* @property {Object} [get] - GET params
Expand All @@ -44,6 +43,7 @@
* @property {String} groupHash - event's hash (catcherType + title + salt)
* @property {User[]} visitedBy - array of users who visited this event
* @property {EventPayload} payload - event's payload
* @property {Number} timestamp - event's Unix timestamp
*/

/**
Expand Down
2 changes: 2 additions & 0 deletions src/models/eventsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const { ObjectID } = require('mongodb');
* @property {String} _id — repetition's identifier
* @property {String} groupHash - event's hash. Generates according to the rule described in EventSchema
* @property {EventPayload} payload - repetition's payload
* @property {Number} timestamp - repetition's Unix timestamp
*/

/**
Expand Down Expand Up @@ -436,6 +437,7 @@ class EventsFactory extends Factory {
_id: eventOriginal._id,
payload: eventOriginal.payload,
groupHash: eventOriginal.groupHash,
timestamp: eventOriginal.timestamp,
};

repetitions.push(firstRepetition);
Expand Down
20 changes: 10 additions & 10 deletions src/typeDefs/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ type EventPayload {
"""
type: String

"""
Event timestamp
"""
timestamp: Float!

"""
Event severity level
"""
Expand Down Expand Up @@ -185,11 +180,6 @@ type EventPayload {
Type representing Event payload. All fields can be omitted if there are no difference with the original
"""
type RepetitionPayload {
"""
Event timestamp. Can be empty if repetition has the same timestamp as original event
"""
timestamp: Float

"""
Event title
"""
Expand Down Expand Up @@ -269,6 +259,11 @@ type Repetition {
Delta of the event's payload, stringified JSON
"""
delta: String

"""
Event timestamp
"""
timestamp: Float!
}

"""
Expand Down Expand Up @@ -323,6 +318,11 @@ type Event {
"""
payload: EventPayload!

"""
Event timestamp
"""
timestamp: Float!

"""
Release data
"""
Expand Down