cecon-interfaces 1.1.2 → 1.1.3

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.
Files changed (35) hide show
  1. package/dist/company/entities/company.entity.d.ts +3 -3
  2. package/dist/company/entities/company.entity.js +3 -3
  3. package/dist/company/interfaces/i-company.d.ts +3 -3
  4. package/dist/esm2022/company/entities/company.entity.mjs +4 -4
  5. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  6. package/dist/esm2022/member/entities/member.entity.mjs +3 -2
  7. package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
  8. package/dist/esm2022/order/entities/item-composition.entity.mjs +2 -2
  9. package/dist/esm2022/order/interfaces/i-item-composition.mjs +1 -1
  10. package/dist/esm2022/subscription/entities/index.mjs +2 -1
  11. package/dist/esm2022/subscription/entities/subscription-company.entity.mjs +21 -0
  12. package/dist/esm2022/subscription/entities/subscription.entity.mjs +13 -15
  13. package/dist/esm2022/subscription/interfaces/i-subscription-company.mjs +2 -0
  14. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  15. package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
  16. package/dist/fesm2022/cecon-interfaces.mjs +37 -18
  17. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  18. package/dist/member/entities/member.entity.d.ts +2 -1
  19. package/dist/member/entities/member.entity.js +1 -1
  20. package/dist/member/interfaces/i-member.d.ts +1 -1
  21. package/dist/order/entities/item-composition.entity.d.ts +1 -1
  22. package/dist/order/entities/item-composition.entity.js +1 -1
  23. package/dist/order/interfaces/i-item-composition.d.ts +1 -1
  24. package/dist/package.json +1 -1
  25. package/dist/subscription/entities/index.d.ts +1 -0
  26. package/dist/subscription/entities/index.js +3 -1
  27. package/dist/subscription/entities/subscription-company.entity.d.ts +10 -0
  28. package/dist/subscription/entities/subscription-company.entity.js +25 -0
  29. package/dist/subscription/entities/subscription.entity.d.ts +8 -10
  30. package/dist/subscription/entities/subscription.entity.js +10 -12
  31. package/dist/subscription/interfaces/i-subscription-company.d.ts +8 -0
  32. package/dist/subscription/interfaces/i-subscription-company.js +2 -0
  33. package/dist/subscription/interfaces/i-subscription.d.ts +7 -9
  34. package/dist/subscription/interfaces/index.d.ts +1 -0
  35. package/package.json +1 -1
@@ -9,10 +9,11 @@ export declare class MemberEntity extends BaseEntity implements IMember {
9
9
  name: string;
10
10
  partnerId: string;
11
11
  phoneNumber: string;
12
- photoURL: string;
12
+ photoUrl: string;
13
13
  rule: MemberRulesEnum;
14
14
  tags: string[];
15
15
  type: MemberTypeEnum;
16
16
  uid: string;
17
17
  constructor(data?: Partial<MemberEntity>);
18
+ photoURL: string;
18
19
  }
@@ -32,7 +32,7 @@ var MemberEntity = /** @class */ (function (_super) {
32
32
  _this.name = '';
33
33
  _this.partnerId = '';
34
34
  _this.phoneNumber = '';
35
- _this.photoURL = '';
35
+ _this.photoUrl = '';
36
36
  _this.rule = enums_1.MemberRulesEnum.USER;
37
37
  _this.tags = [];
38
38
  _this.type = enums_1.MemberTypeEnum.CLIENT;
@@ -7,7 +7,7 @@ export interface IMember extends IBase {
7
7
  name: string;
8
8
  partnerId: string;
9
9
  phoneNumber: string;
10
- photoURL: string;
10
+ photoUrl: string;
11
11
  rule: MemberRulesEnum;
12
12
  type: MemberTypeEnum;
13
13
  tags: string[];
@@ -2,7 +2,7 @@ export declare class OrderItemCompositionEntity {
2
2
  amount: number;
3
3
  code: string;
4
4
  description: string;
5
- imageURL: string;
5
+ imageUrl: string;
6
6
  quantity: number;
7
7
  unit: string;
8
8
  constructor(data?: Partial<OrderItemCompositionEntity>);
@@ -9,7 +9,7 @@ var OrderItemCompositionEntity = /** @class */ (function () {
9
9
  this.amount = 0;
10
10
  this.code = '';
11
11
  this.description = '';
12
- this.imageURL = '';
12
+ this.imageUrl = '';
13
13
  this.quantity = 0;
14
14
  this.unit = '';
15
15
  if (data) {
@@ -2,7 +2,7 @@ export interface IOrderItemComposition {
2
2
  amount: number;
3
3
  code: string;
4
4
  description: string;
5
- imageURL: string;
5
+ imageUrl: string;
6
6
  quantity: number;
7
7
  unit: string;
8
8
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.02",
3
+ "version": "1.1.03",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ export { SubscriptionCompanyEntity } from './subscription-company.entity';
1
2
  export { SubscriptionItemEntity } from './subscription-item.entity';
2
3
  export { SubscriptionLogEntity } from './subscription-log.entity';
3
4
  export { SubscriptionEntity } from './subscription.entity';
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = void 0;
3
+ exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = exports.SubscriptionCompanyEntity = void 0;
4
+ var subscription_company_entity_1 = require("./subscription-company.entity");
5
+ Object.defineProperty(exports, "SubscriptionCompanyEntity", { enumerable: true, get: function () { return subscription_company_entity_1.SubscriptionCompanyEntity; } });
4
6
  var subscription_item_entity_1 = require("./subscription-item.entity");
5
7
  Object.defineProperty(exports, "SubscriptionItemEntity", { enumerable: true, get: function () { return subscription_item_entity_1.SubscriptionItemEntity; } });
6
8
  var subscription_log_entity_1 = require("./subscription-log.entity");
@@ -0,0 +1,10 @@
1
+ import { ISubscriptionCompany } from '../interfaces/i-subscription-company';
2
+ export declare class SubscriptionCompanyEntity implements ISubscriptionCompany {
3
+ containerId: string | null;
4
+ doc: string | null;
5
+ docType: string | null;
6
+ id: string | null;
7
+ imageUrl: string | null;
8
+ name: string | null;
9
+ constructor(data?: Partial<SubscriptionCompanyEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionCompanyEntity = void 0;
4
+ var SubscriptionCompanyEntity = /** @class */ (function () {
5
+ // #endregion Properties (6)
6
+ // #region Constructors (1)
7
+ function SubscriptionCompanyEntity(data) {
8
+ // #region Properties (6)
9
+ this.containerId = '';
10
+ this.doc = '';
11
+ this.docType = '';
12
+ this.id = '';
13
+ this.imageUrl = '';
14
+ this.name = '';
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return SubscriptionCompanyEntity;
24
+ }());
25
+ exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;
@@ -1,15 +1,13 @@
1
- import { FeatureEntity } from "../../feature";
2
- import { CustomVariableEntity, IntervalTypeEnum } from "../../general";
3
- import { SubscriptionStatusEnum } from "../enums";
4
- import { ISubscription } from "../interfaces/i-subscription";
5
- import { SubscriptionItemEntity } from "./subscription-item.entity";
6
- import { SubscriptionLogEntity } from "./subscription-log.entity";
1
+ import { FeatureEntity } from '../../feature';
2
+ import { CustomVariableEntity, IntervalTypeEnum } from '../../general';
3
+ import { SubscriptionStatusEnum } from '../enums';
4
+ import { ISubscription } from '../interfaces/i-subscription';
5
+ import { SubscriptionCompanyEntity } from './subscription-company.entity';
6
+ import { SubscriptionItemEntity } from './subscription-item.entity';
7
+ import { SubscriptionLogEntity } from './subscription-log.entity';
7
8
  export declare class SubscriptionEntity implements ISubscription {
8
9
  cancellationReason: string;
9
- companyDoc: string;
10
- companyId: string;
11
- companyName: string;
12
- containerId: string | null;
10
+ company: SubscriptionCompanyEntity;
13
11
  createdAt: Date;
14
12
  customVariables: CustomVariableEntity[];
15
13
  expiresAt: Date;
@@ -3,29 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionEntity = void 0;
4
4
  var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
+ var subscription_company_entity_1 = require("./subscription-company.entity");
6
7
  var SubscriptionEntity = /** @class */ (function () {
7
- // #endregion Properties (24)
8
+ // #endregion Properties (25)
8
9
  // #region Constructors (1)
9
10
  function SubscriptionEntity(data) {
10
- // #region Properties (24)
11
- this.cancellationReason = "";
12
- this.companyDoc = "";
13
- this.companyId = "";
14
- this.companyName = "";
15
- this.containerId = "";
11
+ // #region Properties (25)
12
+ this.cancellationReason = '';
13
+ this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
16
14
  this.createdAt = new Date();
17
15
  this.customVariables = [];
18
16
  this.expiresAt = new Date();
19
17
  this.features = [];
20
- this.id = "";
18
+ this.id = '';
21
19
  this.interval = 0;
22
20
  this.intervalType = general_1.IntervalTypeEnum.MONTHS;
23
21
  this.items = [];
24
22
  this.logs = [];
25
- this.notes = "";
26
- this.partnerId = "";
27
- this.planId = "";
28
- this.planName = "";
23
+ this.notes = '';
24
+ this.partnerId = '';
25
+ this.planId = '';
26
+ this.planName = '';
29
27
  this.renewPaymentDate = new Date();
30
28
  this.renovatedAt = new Date();
31
29
  this.startsAt = new Date();
@@ -0,0 +1,8 @@
1
+ export interface ISubscriptionCompany {
2
+ containerId: string | null;
3
+ doc: string | null;
4
+ docType: string | null;
5
+ id: string | null;
6
+ imageUrl: string | null;
7
+ name: string | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,12 @@
1
- import { IFeature } from "../../feature";
2
- import { ICustomVariable, IntervalTypeEnum } from "../../general";
3
- import { SubscriptionStatusEnum } from "../enums";
4
- import { ISubscriptionItem } from "./i-subscription-item";
5
- import { ISubscriptionLog } from "./i-subscription-log";
1
+ import { IFeature } from '../../feature';
2
+ import { ICustomVariable, IntervalTypeEnum } from '../../general';
3
+ import { SubscriptionStatusEnum } from '../enums';
4
+ import { ISubscriptionCompany } from './i-subscription-company';
5
+ import { ISubscriptionItem } from './i-subscription-item';
6
+ import { ISubscriptionLog } from './i-subscription-log';
6
7
  export interface ISubscription {
7
8
  cancellationReason: string;
8
- companyDoc: string;
9
- companyId: string;
10
- companyName: string;
11
- containerId: string | null;
9
+ company: ISubscriptionCompany;
12
10
  createdAt: Date;
13
11
  customVariables: ICustomVariable[];
14
12
  expiresAt: Date;
@@ -1,3 +1,4 @@
1
1
  export { ISubscription } from './i-subscription';
2
+ export { ISubscriptionCompany } from './i-subscription-company';
2
3
  export { ISubscriptionItem } from './i-subscription-item';
3
4
  export { ISubscriptionLog } from './i-subscription-log';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.02",
3
+ "version": "1.1.03",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",