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.
Files changed (53) hide show
  1. package/dist/company/entities/company.entity.d.ts +0 -1
  2. package/dist/company/entities/company.entity.js +0 -1
  3. package/dist/company/interfaces/i-company.d.ts +0 -1
  4. package/dist/esm2022/company/entities/company.entity.mjs +1 -2
  5. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  6. package/dist/esm2022/index.mjs +2 -1
  7. package/dist/esm2022/member/entities/member.entity.mjs +1 -2
  8. package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
  9. package/dist/esm2022/notification/entities/index.mjs +2 -0
  10. package/dist/esm2022/notification/entities/notification-action.entity.mjs +20 -0
  11. package/dist/esm2022/notification/entities/notification.entity.mjs +28 -0
  12. package/dist/esm2022/notification/enums/action-type.enum.mjs +7 -0
  13. package/dist/esm2022/notification/enums/category.enum.mjs +11 -0
  14. package/dist/esm2022/notification/enums/index.mjs +5 -0
  15. package/dist/esm2022/notification/enums/priority.enum.mjs +8 -0
  16. package/dist/esm2022/notification/enums/status.enum.mjs +7 -0
  17. package/dist/esm2022/notification/index.mjs +4 -0
  18. package/dist/esm2022/notification/interfaces/i-notification-action.mjs +2 -0
  19. package/dist/esm2022/notification/interfaces/i-notification.mjs +2 -0
  20. package/dist/esm2022/notification/interfaces/index.mjs +2 -0
  21. package/dist/fesm2022/cecon-interfaces.mjs +79 -3
  22. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +1 -0
  25. package/dist/member/entities/member.entity.d.ts +0 -1
  26. package/dist/member/entities/member.entity.js +0 -1
  27. package/dist/member/interfaces/i-member.d.ts +0 -1
  28. package/dist/notification/entities/index.d.ts +1 -0
  29. package/dist/notification/entities/index.js +5 -0
  30. package/dist/notification/entities/notification-action.entity.d.ts +9 -0
  31. package/dist/notification/entities/notification-action.entity.js +24 -0
  32. package/dist/notification/entities/notification.entity.d.ts +17 -0
  33. package/dist/notification/entities/notification.entity.js +32 -0
  34. package/dist/notification/enums/action-type.enum.d.ts +5 -0
  35. package/dist/notification/enums/action-type.enum.js +9 -0
  36. package/dist/notification/enums/category.enum.d.ts +9 -0
  37. package/dist/notification/enums/category.enum.js +13 -0
  38. package/dist/notification/enums/index.d.ts +4 -0
  39. package/dist/notification/enums/index.js +11 -0
  40. package/dist/notification/enums/priority.enum.d.ts +6 -0
  41. package/dist/notification/enums/priority.enum.js +10 -0
  42. package/dist/notification/enums/status.enum.d.ts +5 -0
  43. package/dist/notification/enums/status.enum.js +9 -0
  44. package/dist/notification/index.d.ts +3 -0
  45. package/dist/notification/index.js +19 -0
  46. package/dist/notification/interfaces/i-notification-action.d.ts +7 -0
  47. package/dist/notification/interfaces/i-notification-action.js +2 -0
  48. package/dist/notification/interfaces/i-notification.d.ts +15 -0
  49. package/dist/notification/interfaces/i-notification.js +2 -0
  50. package/dist/notification/interfaces/index.d.ts +1 -0
  51. package/dist/notification/interfaces/index.js +2 -0
  52. package/dist/package.json +1 -1
  53. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './invite';
7
7
  export * from './iugu';
8
8
  export * from './lead';
9
9
  export * from './member';
10
+ export * from './notification';
10
11
  export * from './order';
11
12
  export * from './partner';
12
13
  export * from './plan';
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);
@@ -10,7 +10,6 @@ export declare class MemberEntity extends BaseEntity implements IMember {
10
10
  partnerId: string;
11
11
  phoneNumber: string;
12
12
  photoURL: string;
13
- pubsubSubscription: string;
14
13
  rule: MemberRulesEnum;
15
14
  tags: string[];
16
15
  type: MemberTypeEnum;
@@ -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;
@@ -10,7 +10,6 @@ export interface IMember extends IBase {
10
10
  photoURL: string;
11
11
  rule: MemberRulesEnum;
12
12
  type: MemberTypeEnum;
13
- pubsubSubscription: string;
14
13
  tags: string[];
15
14
  uid: string;
16
15
  }
@@ -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,5 @@
1
+ export declare enum NotificationActionTypeEnum {
2
+ URL = "url",
3
+ FUNCTION = "function",
4
+ CUSTOM = "custom"
5
+ }
@@ -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,9 @@
1
+ export declare enum NotificationCategoryEnum {
2
+ INVITE = "invite",
3
+ LEAD = "lead",
4
+ TASK = "task",
5
+ MEETING = "meeting",
6
+ ALERT = "alert",
7
+ UPDATE = "update",
8
+ OTHER = "other"
9
+ }
@@ -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,4 @@
1
+ export { NotificationActionTypeEnum } from './action-type.enum';
2
+ export { NotificationCategoryEnum } from './category.enum';
3
+ export { NotificationPriorityEnum } from './priority.enum';
4
+ export { NotificationStatusEnum } from './status.enum';
@@ -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,6 @@
1
+ export declare enum NotificationPriorityEnum {
2
+ LOW = "low",
3
+ MEDIUM = "medium",
4
+ HIGH = "high",
5
+ URGENT = "urgent"
6
+ }
@@ -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,5 @@
1
+ export declare enum NotificationStatusEnum {
2
+ DELIVERED = "delivered",
3
+ READ = "read",
4
+ FAILED = "failed"
5
+ }
@@ -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,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -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,7 @@
1
+ import { NotificationActionTypeEnum } from '../enums';
2
+ export interface INotificationAction {
3
+ icon?: string;
4
+ label: string;
5
+ type: NotificationActionTypeEnum;
6
+ value: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { INotification } from './i-notification';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.56",
3
+ "version": "1.0.59",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.56",
3
+ "version": "1.0.59",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},