cecon-interfaces 1.0.56 → 1.0.59
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +0 -1
- package/dist/company/entities/company.entity.js +0 -1
- package/dist/company/interfaces/i-company.d.ts +0 -1
- package/dist/esm2022/company/entities/company.entity.mjs +1 -2
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/member/entities/member.entity.mjs +1 -2
- package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
- package/dist/esm2022/notification/entities/index.mjs +2 -0
- package/dist/esm2022/notification/entities/notification-action.entity.mjs +20 -0
- package/dist/esm2022/notification/entities/notification.entity.mjs +28 -0
- package/dist/esm2022/notification/enums/action-type.enum.mjs +7 -0
- package/dist/esm2022/notification/enums/category.enum.mjs +11 -0
- package/dist/esm2022/notification/enums/index.mjs +5 -0
- package/dist/esm2022/notification/enums/priority.enum.mjs +8 -0
- package/dist/esm2022/notification/enums/status.enum.mjs +7 -0
- package/dist/esm2022/notification/index.mjs +4 -0
- package/dist/esm2022/notification/interfaces/i-notification-action.mjs +2 -0
- package/dist/esm2022/notification/interfaces/i-notification.mjs +2 -0
- package/dist/esm2022/notification/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +79 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/member/entities/member.entity.d.ts +0 -1
- package/dist/member/entities/member.entity.js +0 -1
- package/dist/member/interfaces/i-member.d.ts +0 -1
- package/dist/notification/entities/index.d.ts +1 -0
- package/dist/notification/entities/index.js +5 -0
- package/dist/notification/entities/notification-action.entity.d.ts +9 -0
- package/dist/notification/entities/notification-action.entity.js +24 -0
- package/dist/notification/entities/notification.entity.d.ts +17 -0
- package/dist/notification/entities/notification.entity.js +32 -0
- package/dist/notification/enums/action-type.enum.d.ts +5 -0
- package/dist/notification/enums/action-type.enum.js +9 -0
- package/dist/notification/enums/category.enum.d.ts +9 -0
- package/dist/notification/enums/category.enum.js +13 -0
- package/dist/notification/enums/index.d.ts +4 -0
- package/dist/notification/enums/index.js +11 -0
- package/dist/notification/enums/priority.enum.d.ts +6 -0
- package/dist/notification/enums/priority.enum.js +10 -0
- package/dist/notification/enums/status.enum.d.ts +5 -0
- package/dist/notification/enums/status.enum.js +9 -0
- package/dist/notification/index.d.ts +3 -0
- package/dist/notification/index.js +19 -0
- package/dist/notification/interfaces/i-notification-action.d.ts +7 -0
- package/dist/notification/interfaces/i-notification-action.js +2 -0
- package/dist/notification/interfaces/i-notification.d.ts +15 -0
- package/dist/notification/interfaces/i-notification.js +2 -0
- package/dist/notification/interfaces/index.d.ts +1 -0
- package/dist/notification/interfaces/index.js +2 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -23,6 +23,7 @@ __exportStar(require("./invite"), exports);
|
|
23
23
|
__exportStar(require("./iugu"), exports);
|
24
24
|
__exportStar(require("./lead"), exports);
|
25
25
|
__exportStar(require("./member"), exports);
|
26
|
+
__exportStar(require("./notification"), exports);
|
26
27
|
__exportStar(require("./order"), exports);
|
27
28
|
__exportStar(require("./partner"), exports);
|
28
29
|
__exportStar(require("./plan"), exports);
|
@@ -33,7 +33,6 @@ var MemberEntity = /** @class */ (function (_super) {
|
|
33
33
|
_this.partnerId = '';
|
34
34
|
_this.phoneNumber = '';
|
35
35
|
_this.photoURL = '';
|
36
|
-
_this.pubsubSubscription = '';
|
37
36
|
_this.rule = enums_1.MemberRulesEnum.USER;
|
38
37
|
_this.tags = [];
|
39
38
|
_this.type = enums_1.MemberTypeEnum.CLIENT;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NotificationEntity } from './notification.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationEntity = void 0;
|
4
|
+
var notification_entity_1 = require("./notification.entity");
|
5
|
+
Object.defineProperty(exports, "NotificationEntity", { enumerable: true, get: function () { return notification_entity_1.NotificationEntity; } });
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { NotificationActionTypeEnum } from '../enums';
|
2
|
+
import { INotificationAction } from '../interfaces/i-notification-action';
|
3
|
+
export declare class NotificationActionEntity implements INotificationAction {
|
4
|
+
icon?: string;
|
5
|
+
label: string;
|
6
|
+
type: NotificationActionTypeEnum;
|
7
|
+
value: string;
|
8
|
+
constructor(data?: Partial<NotificationActionEntity>);
|
9
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationActionEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var NotificationActionEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (4)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function NotificationActionEntity(data) {
|
9
|
+
// #region Properties (4)
|
10
|
+
this.icon = '';
|
11
|
+
this.label = '';
|
12
|
+
this.type = enums_1.NotificationActionTypeEnum.URL;
|
13
|
+
this.value = '';
|
14
|
+
if (data) {
|
15
|
+
for (var key in data) {
|
16
|
+
if (data.hasOwnProperty(key) && key in this) {
|
17
|
+
this[key] = data[key];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
return NotificationActionEntity;
|
23
|
+
}());
|
24
|
+
exports.NotificationActionEntity = NotificationActionEntity;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { NotificationCategoryEnum, NotificationPriorityEnum, NotificationStatusEnum } from '../enums';
|
2
|
+
import { INotification } from '../interfaces';
|
3
|
+
import { NotificationActionEntity } from './notification-action.entity';
|
4
|
+
export declare class NotificationEntity implements INotification {
|
5
|
+
action: NotificationActionEntity;
|
6
|
+
category: NotificationCategoryEnum;
|
7
|
+
createdAt: Date;
|
8
|
+
data: string;
|
9
|
+
expirationTime: number;
|
10
|
+
id: string;
|
11
|
+
imageURL: string;
|
12
|
+
priority: NotificationPriorityEnum;
|
13
|
+
sound: boolean;
|
14
|
+
status: NotificationStatusEnum;
|
15
|
+
topicName: string;
|
16
|
+
constructor(data?: Partial<NotificationEntity>);
|
17
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var notification_action_entity_1 = require("./notification-action.entity");
|
6
|
+
var NotificationEntity = /** @class */ (function () {
|
7
|
+
// #endregion Properties (11)
|
8
|
+
// #region Constructors (1)
|
9
|
+
function NotificationEntity(data) {
|
10
|
+
// #region Properties (11)
|
11
|
+
this.action = new notification_action_entity_1.NotificationActionEntity();
|
12
|
+
this.category = enums_1.NotificationCategoryEnum.ALERT;
|
13
|
+
this.createdAt = new Date();
|
14
|
+
this.data = '';
|
15
|
+
this.expirationTime = 3600;
|
16
|
+
this.id = '';
|
17
|
+
this.imageURL = '';
|
18
|
+
this.priority = enums_1.NotificationPriorityEnum.HIGH;
|
19
|
+
this.sound = true;
|
20
|
+
this.status = enums_1.NotificationStatusEnum.DELIVERED;
|
21
|
+
this.topicName = '';
|
22
|
+
if (data) {
|
23
|
+
for (var key in data) {
|
24
|
+
if (data.hasOwnProperty(key) && key in this) {
|
25
|
+
this[key] = data[key];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
return NotificationEntity;
|
31
|
+
}());
|
32
|
+
exports.NotificationEntity = NotificationEntity;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationActionTypeEnum = void 0;
|
4
|
+
var NotificationActionTypeEnum;
|
5
|
+
(function (NotificationActionTypeEnum) {
|
6
|
+
NotificationActionTypeEnum["URL"] = "url";
|
7
|
+
NotificationActionTypeEnum["FUNCTION"] = "function";
|
8
|
+
NotificationActionTypeEnum["CUSTOM"] = "custom";
|
9
|
+
})(NotificationActionTypeEnum || (exports.NotificationActionTypeEnum = NotificationActionTypeEnum = {}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationCategoryEnum = void 0;
|
4
|
+
var NotificationCategoryEnum;
|
5
|
+
(function (NotificationCategoryEnum) {
|
6
|
+
NotificationCategoryEnum["INVITE"] = "invite";
|
7
|
+
NotificationCategoryEnum["LEAD"] = "lead";
|
8
|
+
NotificationCategoryEnum["TASK"] = "task";
|
9
|
+
NotificationCategoryEnum["MEETING"] = "meeting";
|
10
|
+
NotificationCategoryEnum["ALERT"] = "alert";
|
11
|
+
NotificationCategoryEnum["UPDATE"] = "update";
|
12
|
+
NotificationCategoryEnum["OTHER"] = "other";
|
13
|
+
})(NotificationCategoryEnum || (exports.NotificationCategoryEnum = NotificationCategoryEnum = {}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationStatusEnum = exports.NotificationPriorityEnum = exports.NotificationCategoryEnum = exports.NotificationActionTypeEnum = void 0;
|
4
|
+
var action_type_enum_1 = require("./action-type.enum");
|
5
|
+
Object.defineProperty(exports, "NotificationActionTypeEnum", { enumerable: true, get: function () { return action_type_enum_1.NotificationActionTypeEnum; } });
|
6
|
+
var category_enum_1 = require("./category.enum");
|
7
|
+
Object.defineProperty(exports, "NotificationCategoryEnum", { enumerable: true, get: function () { return category_enum_1.NotificationCategoryEnum; } });
|
8
|
+
var priority_enum_1 = require("./priority.enum");
|
9
|
+
Object.defineProperty(exports, "NotificationPriorityEnum", { enumerable: true, get: function () { return priority_enum_1.NotificationPriorityEnum; } });
|
10
|
+
var status_enum_1 = require("./status.enum");
|
11
|
+
Object.defineProperty(exports, "NotificationStatusEnum", { enumerable: true, get: function () { return status_enum_1.NotificationStatusEnum; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationPriorityEnum = void 0;
|
4
|
+
var NotificationPriorityEnum;
|
5
|
+
(function (NotificationPriorityEnum) {
|
6
|
+
NotificationPriorityEnum["LOW"] = "low";
|
7
|
+
NotificationPriorityEnum["MEDIUM"] = "medium";
|
8
|
+
NotificationPriorityEnum["HIGH"] = "high";
|
9
|
+
NotificationPriorityEnum["URGENT"] = "urgent";
|
10
|
+
})(NotificationPriorityEnum || (exports.NotificationPriorityEnum = NotificationPriorityEnum = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NotificationStatusEnum = void 0;
|
4
|
+
var NotificationStatusEnum;
|
5
|
+
(function (NotificationStatusEnum) {
|
6
|
+
NotificationStatusEnum["DELIVERED"] = "delivered";
|
7
|
+
NotificationStatusEnum["READ"] = "read";
|
8
|
+
NotificationStatusEnum["FAILED"] = "failed";
|
9
|
+
})(NotificationStatusEnum || (exports.NotificationStatusEnum = NotificationStatusEnum = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { NotificationCategoryEnum, NotificationPriorityEnum, NotificationStatusEnum } from '../enums';
|
2
|
+
import { INotificationAction } from './i-notification-action';
|
3
|
+
export interface INotification {
|
4
|
+
action: INotificationAction;
|
5
|
+
priority: NotificationPriorityEnum;
|
6
|
+
category: NotificationCategoryEnum;
|
7
|
+
createdAt: Date;
|
8
|
+
expirationTime: number;
|
9
|
+
status: NotificationStatusEnum;
|
10
|
+
imageURL: string;
|
11
|
+
sound: boolean;
|
12
|
+
id: string;
|
13
|
+
data: string;
|
14
|
+
topicName: string;
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { INotification } from './i-notification';
|
package/dist/package.json
CHANGED