cecon-interfaces 1.1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/.prettierrc +7 -0
  2. package/dist/README.md +1 -1
  3. package/dist/app/entities/index.d.ts +1 -0
  4. package/dist/app/entities/index.js +3 -1
  5. package/dist/app/entities/rabbit.entity.d.ts +21 -0
  6. package/dist/app/entities/rabbit.entity.js +36 -0
  7. package/dist/app/enums/mode.enum.d.ts +1 -0
  8. package/dist/app/enums/mode.enum.js +1 -0
  9. package/dist/app/interfaces/i-rabbit.d.ts +64 -0
  10. package/dist/app/interfaces/i-rabbit.js +2 -0
  11. package/dist/app/interfaces/index.d.ts +1 -0
  12. package/dist/company/entities/company.entity.d.ts +3 -3
  13. package/dist/company/entities/company.entity.js +3 -3
  14. package/dist/company/interfaces/i-company.d.ts +3 -3
  15. package/dist/esm2022/app/entities/index.mjs +2 -1
  16. package/dist/esm2022/app/entities/rabbit.entity.mjs +32 -0
  17. package/dist/esm2022/app/enums/mode.enum.mjs +2 -1
  18. package/dist/esm2022/app/interfaces/i-rabbit.mjs +2 -0
  19. package/dist/esm2022/app/interfaces/index.mjs +1 -1
  20. package/dist/esm2022/company/entities/company.entity.mjs +4 -4
  21. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  22. package/dist/esm2022/general/enums/fiscal-doc-model-code.enum.mjs +13 -0
  23. package/dist/esm2022/general/enums/index.mjs +2 -1
  24. package/dist/esm2022/iugu/enums/iugu-bank.enum.mjs +13 -13
  25. package/dist/esm2022/member/entities/member.entity.mjs +3 -2
  26. package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
  27. package/dist/esm2022/order/entities/item-composition.entity.mjs +2 -2
  28. package/dist/esm2022/order/interfaces/i-item-composition.mjs +1 -1
  29. package/dist/esm2022/subscription/entities/index.mjs +2 -1
  30. package/dist/esm2022/subscription/entities/subscription-company.entity.mjs +21 -0
  31. package/dist/esm2022/subscription/entities/subscription.entity.mjs +13 -15
  32. package/dist/esm2022/subscription/interfaces/i-subscription-company.mjs +2 -0
  33. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  34. package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
  35. package/dist/fesm2022/cecon-interfaces.mjs +93 -30
  36. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  37. package/dist/general/enums/fiscal-doc-model-code.enum.d.ts +11 -0
  38. package/dist/general/enums/fiscal-doc-model-code.enum.js +15 -0
  39. package/dist/general/enums/index.d.ts +1 -0
  40. package/dist/general/enums/index.js +3 -1
  41. package/dist/iugu/enums/iugu-bank.enum.js +12 -12
  42. package/dist/member/entities/member.entity.d.ts +2 -1
  43. package/dist/member/entities/member.entity.js +1 -1
  44. package/dist/member/interfaces/i-member.d.ts +1 -1
  45. package/dist/order/entities/item-composition.entity.d.ts +1 -1
  46. package/dist/order/entities/item-composition.entity.js +1 -1
  47. package/dist/order/interfaces/i-item-composition.d.ts +1 -1
  48. package/dist/package.json +1 -1
  49. package/dist/subscription/entities/index.d.ts +1 -0
  50. package/dist/subscription/entities/index.js +3 -1
  51. package/dist/subscription/entities/subscription-company.entity.d.ts +10 -0
  52. package/dist/subscription/entities/subscription-company.entity.js +25 -0
  53. package/dist/subscription/entities/subscription.entity.d.ts +8 -10
  54. package/dist/subscription/entities/subscription.entity.js +10 -12
  55. package/dist/subscription/interfaces/i-subscription-company.d.ts +8 -0
  56. package/dist/subscription/interfaces/i-subscription-company.js +2 -0
  57. package/dist/subscription/interfaces/i-subscription.d.ts +7 -9
  58. package/dist/subscription/interfaces/index.d.ts +1 -0
  59. package/package.json +1 -1
  60. package/readme.md +1 -1
@@ -0,0 +1,11 @@
1
+ export declare enum EFiscalDocModelCode {
2
+ NFE = "55",
3
+ CTE = "57",
4
+ SAT = "59",
5
+ ECF = "60",
6
+ NFCOM = "62",
7
+ BPE = "63",
8
+ NFCE = "65",
9
+ NF3E = "66",
10
+ OS = "67"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EFiscalDocModelCode = void 0;
4
+ var EFiscalDocModelCode;
5
+ (function (EFiscalDocModelCode) {
6
+ EFiscalDocModelCode["NFE"] = "55";
7
+ EFiscalDocModelCode["CTE"] = "57";
8
+ EFiscalDocModelCode["SAT"] = "59";
9
+ EFiscalDocModelCode["ECF"] = "60";
10
+ EFiscalDocModelCode["NFCOM"] = "62";
11
+ EFiscalDocModelCode["BPE"] = "63";
12
+ EFiscalDocModelCode["NFCE"] = "65";
13
+ EFiscalDocModelCode["NF3E"] = "66";
14
+ EFiscalDocModelCode["OS"] = "67";
15
+ })(EFiscalDocModelCode || (exports.EFiscalDocModelCode = EFiscalDocModelCode = {}));
@@ -1,5 +1,6 @@
1
1
  export { BooleanStringEnum } from './boolean-string.enum';
2
2
  export { DocTypeEnum } from './doc-type.enum';
3
+ export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
3
4
  export { IntervalTypeEnum } from './interval-type.enum';
4
5
  export { LeadOriginEnum } from './lead-origin.enum';
5
6
  export { OsEnum } from './os.enum';
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.PaymentTypeEnum = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.DocTypeEnum = exports.BooleanStringEnum = void 0;
3
+ exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.PaymentTypeEnum = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.DocTypeEnum = exports.BooleanStringEnum = void 0;
4
4
  var boolean_string_enum_1 = require("./boolean-string.enum");
5
5
  Object.defineProperty(exports, "BooleanStringEnum", { enumerable: true, get: function () { return boolean_string_enum_1.BooleanStringEnum; } });
6
6
  var doc_type_enum_1 = require("./doc-type.enum");
7
7
  Object.defineProperty(exports, "DocTypeEnum", { enumerable: true, get: function () { return doc_type_enum_1.DocTypeEnum; } });
8
+ var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
9
+ Object.defineProperty(exports, "EFiscalDocModelCode", { enumerable: true, get: function () { return fiscal_doc_model_code_enum_1.EFiscalDocModelCode; } });
8
10
  var interval_type_enum_1 = require("./interval-type.enum");
9
11
  Object.defineProperty(exports, "IntervalTypeEnum", { enumerable: true, get: function () { return interval_type_enum_1.IntervalTypeEnum; } });
10
12
  var lead_origin_enum_1 = require("./lead-origin.enum");
@@ -207,16 +207,16 @@ exports.IuguBankFormatter = [
207
207
  { name: "Neon", agency: "9999", account: "9999999999-D" },
208
208
  { name: "VORTX DTVM LTDA", agency: "9999-D", account: "999-D" },
209
209
  { name: "Banco BMG", agency: "9999", account: "99999999-D" },
210
- { name: "Fitbank", agency: "9999", account: "99999999-D" },
211
- { name: "Pefisa", agency: "9999", account: "99999999-D" },
212
- { name: "J17 - SCD S/A", agency: "9999", account: "99999999-D" },
213
- { name: "Credisan", agency: "9999", account: "99999999-D" },
214
- { name: "Pinbank", agency: "9999", account: "99999999-D" },
215
- { name: "XP Investimentos", agency: "9999", account: "99999999-D" },
216
- { name: "Crefisa", agency: "9999", account: "99999999-D" },
217
- { name: "Singulare", agency: "9999", account: "99999999-D" },
218
- { name: "SUMUP SCD S.A.", agency: "9999", account: "99999999-D" },
219
- { name: "Banco ABC Brasil", agency: "9999", account: "99999999-D" },
220
- { name: "BCO LETSBANK S.A.", agency: "9999", account: "99999999-D" },
221
- { name: "HR Digital Sociedade de Crédito Direto S.A", agency: "9999", account: "99999999-D" },
210
+ { name: "Fitbank", agency: "9999", account: "999999999-9" },
211
+ { name: "Pefisa", agency: "9999", account: "9999999-D" },
212
+ { name: "J17 - SCD S/A", agency: "9999", account: "99999999999-D" },
213
+ { name: "Credisan", agency: "9999", account: "999999999-D" },
214
+ { name: "Pinbank", agency: "999", account: "99999999-D" },
215
+ { name: "XP Investimentos", agency: "9999", account: "999999-D" },
216
+ { name: "Crefisa", agency: "9999", account: "999999999-D" },
217
+ { name: "Singulare", agency: "9999", account: "9999999-D" },
218
+ { name: "SUMUP SCD S.A.", agency: "9999", account: "999999999-D" },
219
+ { name: "Banco ABC Brasil", agency: "9999-D", account: "9999999999" },
220
+ { name: "BCO LETSBANK S.A.", agency: "9999", account: "999999999-D" },
221
+ { name: "HR Digital Sociedade de Crédito Direto S.A", agency: "9999", account: "999999999-D" },
222
222
  ];
@@ -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.01",
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.01",
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",
package/readme.md CHANGED
@@ -1,4 +1,4 @@
1
- *Mude a versão*
1
+ *Mude a versão do PACKAGE.JSON*
2
2
 
3
3
  Compilar:
4
4