@cool-digital-solutions/interferir-models 1.0.79 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,7 +47,9 @@ export declare enum Status {
|
|
|
47
47
|
DONE = "done",
|
|
48
48
|
PENDING = "pending",
|
|
49
49
|
FAILED = "failed",
|
|
50
|
-
STARTED = "started"
|
|
50
|
+
STARTED = "started",
|
|
51
|
+
PRIVATE = "private",
|
|
52
|
+
PUBLISH = "publish"
|
|
51
53
|
}
|
|
52
54
|
export declare enum InstantSparkStatus {
|
|
53
55
|
FAILED = "FAILED",
|
|
@@ -28,6 +28,8 @@ var Status;
|
|
|
28
28
|
Status["PENDING"] = "pending";
|
|
29
29
|
Status["FAILED"] = "failed";
|
|
30
30
|
Status["STARTED"] = "started";
|
|
31
|
+
Status["PRIVATE"] = "private";
|
|
32
|
+
Status["PUBLISH"] = "publish";
|
|
31
33
|
})(Status || (exports.Status = Status = {}));
|
|
32
34
|
var InstantSparkStatus;
|
|
33
35
|
(function (InstantSparkStatus) {
|
|
@@ -23,12 +23,27 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IUser } from './';
|
|
26
|
+
import { ICompany, IUser } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
+
export declare enum NotificationType {
|
|
29
|
+
POPUP = "popup",
|
|
30
|
+
NOTIFICATION = "notification"
|
|
31
|
+
}
|
|
32
|
+
export declare enum MessageType {
|
|
33
|
+
AI_AGENT = "aiAgent",
|
|
34
|
+
COMPETITOR = "competitor",
|
|
35
|
+
INSTANT_RESEARCH = "instantResearch",
|
|
36
|
+
FOLLOW = "follow"
|
|
37
|
+
}
|
|
28
38
|
export interface INotification extends BaseSchema {
|
|
29
39
|
user: Types.ObjectId | IUser;
|
|
40
|
+
company: Types.ObjectId | ICompany;
|
|
41
|
+
type: NotificationType;
|
|
30
42
|
title: string;
|
|
31
43
|
message: string;
|
|
44
|
+
messageType: MessageType;
|
|
45
|
+
url: string;
|
|
46
|
+
isRead: boolean;
|
|
32
47
|
}
|
|
33
48
|
export interface INotificationModel extends BaseModel<INotification> {
|
|
34
49
|
}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageType = exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["POPUP"] = "popup";
|
|
7
|
+
NotificationType["NOTIFICATION"] = "notification";
|
|
8
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
9
|
+
var MessageType;
|
|
10
|
+
(function (MessageType) {
|
|
11
|
+
MessageType["AI_AGENT"] = "aiAgent";
|
|
12
|
+
MessageType["COMPETITOR"] = "competitor";
|
|
13
|
+
MessageType["INSTANT_RESEARCH"] = "instantResearch";
|
|
14
|
+
MessageType["FOLLOW"] = "follow";
|
|
15
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|