cecon-interfaces 1.0.26 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/dist/company/enums/keys.enum.d.ts +5 -5
  2. package/dist/company/enums/keys.enum.js +5 -5
  3. package/dist/company/enums/message-type.enum.d.ts +3 -3
  4. package/dist/company/enums/message-type.enum.js +3 -3
  5. package/dist/device/entities/device.entity.js +1 -1
  6. package/dist/device/enums/device-mode.enum.d.ts +7 -6
  7. package/dist/device/enums/device-mode.enum.js +7 -6
  8. package/dist/esm2022/company/enums/keys.enum.mjs +6 -6
  9. package/dist/esm2022/company/enums/message-type.enum.mjs +4 -4
  10. package/dist/esm2022/device/entities/device.entity.mjs +2 -2
  11. package/dist/esm2022/device/enums/device-mode.enum.mjs +8 -7
  12. package/dist/esm2022/general/entities/origin.entity.mjs +2 -2
  13. package/dist/esm2022/general/entities/payment-method.entity.mjs +4 -4
  14. package/dist/esm2022/general/enums/boolean-string.enum.mjs +3 -3
  15. package/dist/esm2022/general/enums/interval-type.enum.mjs +4 -4
  16. package/dist/esm2022/general/enums/lead-origin.enum.mjs +8 -8
  17. package/dist/esm2022/general/enums/os.enum.mjs +8 -8
  18. package/dist/esm2022/general/enums/payment-channel.enum.mjs +9 -9
  19. package/dist/esm2022/general/enums/payment-mode.enum.mjs +4 -4
  20. package/dist/esm2022/general/enums/payment-type.enum.mjs +19 -19
  21. package/dist/esm2022/general/enums/person-type.enum.mjs +3 -3
  22. package/dist/esm2022/general/enums/platform.enum.mjs +8 -5
  23. package/dist/esm2022/general/enums/providers.enum.mjs +7 -7
  24. package/dist/esm2022/invite/entities/invite.entity.mjs +2 -2
  25. package/dist/esm2022/invite/enums/status.enum.mjs +6 -6
  26. package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +4 -4
  27. package/dist/esm2022/iugu/entities/iugu-account.entity.mjs +2 -2
  28. package/dist/esm2022/iugu/enums/iugu-auto-advance.enum.mjs +5 -5
  29. package/dist/esm2022/lead/entities/lead.entity.mjs +9 -7
  30. package/dist/esm2022/lead/enums/lead-status.enum.mjs +13 -6
  31. package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
  32. package/dist/esm2022/member/entities/member.entity.mjs +6 -5
  33. package/dist/esm2022/member/enums/index.mjs +2 -1
  34. package/dist/esm2022/member/enums/member-rules.enum.mjs +9 -9
  35. package/dist/esm2022/member/enums/member-type.enum.mjs +7 -0
  36. package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
  37. package/dist/esm2022/order/entities/payment-method.entity.mjs +2 -2
  38. package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
  39. package/dist/esm2022/plan/enums/plans-identifier.enum.mjs +3 -3
  40. package/dist/esm2022/purchases/entities/purchase.entity.mjs +2 -2
  41. package/dist/fesm2022/cecon-interfaces.mjs +143 -122
  42. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  43. package/dist/general/entities/origin.entity.js +1 -1
  44. package/dist/general/entities/payment-method.entity.js +3 -3
  45. package/dist/general/enums/boolean-string.enum.d.ts +2 -2
  46. package/dist/general/enums/boolean-string.enum.js +2 -2
  47. package/dist/general/enums/interval-type.enum.d.ts +3 -3
  48. package/dist/general/enums/interval-type.enum.js +3 -3
  49. package/dist/general/enums/lead-origin.enum.d.ts +7 -7
  50. package/dist/general/enums/lead-origin.enum.js +7 -7
  51. package/dist/general/enums/os.enum.d.ts +7 -7
  52. package/dist/general/enums/os.enum.js +7 -7
  53. package/dist/general/enums/payment-channel.enum.d.ts +8 -8
  54. package/dist/general/enums/payment-channel.enum.js +8 -8
  55. package/dist/general/enums/payment-mode.enum.d.ts +3 -3
  56. package/dist/general/enums/payment-mode.enum.js +3 -3
  57. package/dist/general/enums/payment-type.enum.d.ts +18 -18
  58. package/dist/general/enums/payment-type.enum.js +18 -18
  59. package/dist/general/enums/person-type.enum.d.ts +2 -2
  60. package/dist/general/enums/person-type.enum.js +2 -2
  61. package/dist/general/enums/platform.enum.d.ts +7 -4
  62. package/dist/general/enums/platform.enum.js +7 -4
  63. package/dist/general/enums/providers.enum.d.ts +6 -6
  64. package/dist/general/enums/providers.enum.js +6 -6
  65. package/dist/invite/entities/invite.entity.js +1 -1
  66. package/dist/invite/enums/status.enum.d.ts +5 -5
  67. package/dist/invite/enums/status.enum.js +5 -5
  68. package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
  69. package/dist/iugu/entities/iugu-account.entity.js +1 -1
  70. package/dist/iugu/enums/iugu-auto-advance.enum.d.ts +4 -4
  71. package/dist/iugu/enums/iugu-auto-advance.enum.js +4 -4
  72. package/dist/lead/entities/lead.entity.d.ts +4 -2
  73. package/dist/lead/entities/lead.entity.js +8 -6
  74. package/dist/lead/enums/lead-status.enum.d.ts +12 -5
  75. package/dist/lead/enums/lead-status.enum.js +12 -5
  76. package/dist/lead/interfaces/i-lead.d.ts +3 -1
  77. package/dist/member/entities/member.entity.d.ts +2 -1
  78. package/dist/member/entities/member.entity.js +4 -3
  79. package/dist/member/enums/index.d.ts +1 -0
  80. package/dist/member/enums/index.js +3 -1
  81. package/dist/member/enums/member-rules.enum.d.ts +8 -8
  82. package/dist/member/enums/member-rules.enum.js +8 -8
  83. package/dist/member/enums/member-type.enum.d.ts +5 -0
  84. package/dist/member/enums/member-type.enum.js +9 -0
  85. package/dist/member/interfaces/i-member.d.ts +2 -1
  86. package/dist/order/entities/payment-method.entity.js +1 -1
  87. package/dist/package.json +1 -1
  88. package/dist/plan/entities/plan.entity.js +2 -2
  89. package/dist/plan/enums/plans-identifier.enum.d.ts +2 -2
  90. package/dist/plan/enums/plans-identifier.enum.js +2 -2
  91. package/dist/purchases/entities/purchase.entity.js +1 -1
  92. package/package.json +1 -1
@@ -20,11 +20,11 @@ var general_1 = require("../../general");
20
20
  var enums_1 = require("../enums");
21
21
  var MemberEntity = /** @class */ (function (_super) {
22
22
  __extends(MemberEntity, _super);
23
- // #endregion Properties (11)
23
+ // #endregion Properties (12)
24
24
  // #region Constructors (1)
25
25
  function MemberEntity(data) {
26
26
  var _this = _super.call(this, data) || this;
27
- // #region Properties (11)
27
+ // #region Properties (12)
28
28
  _this.active = true;
29
29
  _this.companyName = '';
30
30
  _this.containerName = '';
@@ -33,8 +33,9 @@ var MemberEntity = /** @class */ (function (_super) {
33
33
  _this.partnerId = '';
34
34
  _this.phoneNumber = '';
35
35
  _this.photoURL = '';
36
- _this.rule = enums_1.MemberRulesEnum.User;
36
+ _this.rule = enums_1.MemberRulesEnum.USER;
37
37
  _this.tags = [];
38
+ _this.type = enums_1.MemberTypeEnum.CLIENT;
38
39
  _this.uid = '';
39
40
  if (data) {
40
41
  for (var key in data) {
@@ -1 +1,2 @@
1
1
  export { MemberRulesEnum } from './member-rules.enum';
2
+ export { MemberTypeEnum } from './member-type.enum';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemberRulesEnum = void 0;
3
+ exports.MemberTypeEnum = exports.MemberRulesEnum = void 0;
4
4
  var member_rules_enum_1 = require("./member-rules.enum");
5
5
  Object.defineProperty(exports, "MemberRulesEnum", { enumerable: true, get: function () { return member_rules_enum_1.MemberRulesEnum; } });
6
+ var member_type_enum_1 = require("./member-type.enum");
7
+ Object.defineProperty(exports, "MemberTypeEnum", { enumerable: true, get: function () { return member_type_enum_1.MemberTypeEnum; } });
@@ -1,10 +1,10 @@
1
1
  export declare enum MemberRulesEnum {
2
- Admin = "ADMIN",
3
- User = "USER",
4
- Owner = "OWNER",
5
- Support = "SUPPORT",
6
- Partner = "PARTNER",
7
- Finance = "FINANCE",
8
- Marketing = "MARKETING",
9
- Sales = "SALES"
2
+ ADMIN = "ADMIN",
3
+ USER = "USER",
4
+ OWNER = "OWNER",
5
+ SUPPORT = "SUPPORT",
6
+ PARTNER = "PARTNER",
7
+ FINANCE = "FINANCE",
8
+ MARKETING = "MARKETING",
9
+ SALES = "SALES"
10
10
  }
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MemberRulesEnum = void 0;
4
4
  var MemberRulesEnum;
5
5
  (function (MemberRulesEnum) {
6
- MemberRulesEnum["Admin"] = "ADMIN";
7
- MemberRulesEnum["User"] = "USER";
8
- MemberRulesEnum["Owner"] = "OWNER";
9
- MemberRulesEnum["Support"] = "SUPPORT";
10
- MemberRulesEnum["Partner"] = "PARTNER";
11
- MemberRulesEnum["Finance"] = "FINANCE";
12
- MemberRulesEnum["Marketing"] = "MARKETING";
13
- MemberRulesEnum["Sales"] = "SALES";
6
+ MemberRulesEnum["ADMIN"] = "ADMIN";
7
+ MemberRulesEnum["USER"] = "USER";
8
+ MemberRulesEnum["OWNER"] = "OWNER";
9
+ MemberRulesEnum["SUPPORT"] = "SUPPORT";
10
+ MemberRulesEnum["PARTNER"] = "PARTNER";
11
+ MemberRulesEnum["FINANCE"] = "FINANCE";
12
+ MemberRulesEnum["MARKETING"] = "MARKETING";
13
+ MemberRulesEnum["SALES"] = "SALES";
14
14
  })(MemberRulesEnum || (exports.MemberRulesEnum = MemberRulesEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum MemberTypeEnum {
2
+ PARTNER = "PARTNER",
3
+ ADMIN = "ADMIN",
4
+ CLIENT = "CLIENT"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberTypeEnum = void 0;
4
+ var MemberTypeEnum;
5
+ (function (MemberTypeEnum) {
6
+ MemberTypeEnum["PARTNER"] = "PARTNER";
7
+ MemberTypeEnum["ADMIN"] = "ADMIN";
8
+ MemberTypeEnum["CLIENT"] = "CLIENT";
9
+ })(MemberTypeEnum || (exports.MemberTypeEnum = MemberTypeEnum = {}));
@@ -1,5 +1,5 @@
1
1
  import { IBase } from '../../general';
2
- import { MemberRulesEnum } from '../enums';
2
+ import { MemberRulesEnum, MemberTypeEnum } from '../enums';
3
3
  export interface IMember extends IBase {
4
4
  companyName: string;
5
5
  containerName: string;
@@ -9,5 +9,6 @@ export interface IMember extends IBase {
9
9
  phoneNumber: string;
10
10
  photoURL: string;
11
11
  rule: MemberRulesEnum;
12
+ type: MemberTypeEnum;
12
13
  uid: string;
13
14
  }
@@ -12,7 +12,7 @@ var OrderPaymentMethodEntity = /** @class */ (function () {
12
12
  this.code = '';
13
13
  this.currency = 'BRL';
14
14
  this.id = '';
15
- this.method = general_1.PaymentTypeEnum.Cash;
15
+ this.method = general_1.PaymentTypeEnum.CASH;
16
16
  this.pix = null;
17
17
  this.prepaid = false;
18
18
  this.type = 'OFFLINE';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -11,9 +11,9 @@ var PlanEntity = /** @class */ (function () {
11
11
  this.createdAt = Date.now();
12
12
  this.features = [];
13
13
  this.id = '';
14
- this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NatiGo;
14
+ this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NATIGO;
15
15
  this.interval = 12;
16
- this.intervalType = enums_1.IntervalTypeEnum.Months;
16
+ this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
17
17
  this.name = '';
18
18
  this.price = 0;
19
19
  this.updatedAt = Date.now();
@@ -1,4 +1,4 @@
1
1
  export declare enum PlanIdentifierEnum {
2
- NatiGo = "NATIGO-UNO",
3
- SatManagerNapoleon = "SAT-MANAGER-NAPOLEON"
2
+ NATIGO = "NATIGO-UNO",
3
+ SAT_MANAGER_NAPOLEON = "SAT-MANAGER-NAPOLEON"
4
4
  }
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlanIdentifierEnum = void 0;
4
4
  var PlanIdentifierEnum;
5
5
  (function (PlanIdentifierEnum) {
6
- PlanIdentifierEnum["NatiGo"] = "NATIGO-UNO";
7
- PlanIdentifierEnum["SatManagerNapoleon"] = "SAT-MANAGER-NAPOLEON";
6
+ PlanIdentifierEnum["NATIGO"] = "NATIGO-UNO";
7
+ PlanIdentifierEnum["SAT_MANAGER_NAPOLEON"] = "SAT-MANAGER-NAPOLEON";
8
8
  })(PlanIdentifierEnum || (exports.PlanIdentifierEnum = PlanIdentifierEnum = {}));
@@ -29,7 +29,7 @@ var PurchaseEntity = /** @class */ (function (_super) {
29
29
  _this.additionalNotes = '';
30
30
  _this.appInfo = new app_info_entity_1.AppInfoEntity();
31
31
  _this.deviceUid = '';
32
- _this.providerName = providers_enum_1.PaymentProviderEnum.Iugu;
32
+ _this.providerName = providers_enum_1.PaymentProviderEnum.IUGU;
33
33
  if (data) {
34
34
  for (var key in data) {
35
35
  if (data.hasOwnProperty(key) && key in _this) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},