cecon-interfaces 2.0.56 → 2.0.58

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 (32) hide show
  1. package/dist/esm2022/natipay/company/entities/company.entity.mjs +5 -1
  2. package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
  3. package/dist/esm2022/natipay/index.mjs +2 -1
  4. package/dist/esm2022/natipay/tab-customers/entities/index.mjs +2 -0
  5. package/dist/esm2022/natipay/tab-customers/entities/tab-customer.entity.mjs +68 -0
  6. package/dist/esm2022/natipay/tab-customers/enums/index.mjs +2 -0
  7. package/dist/esm2022/natipay/tab-customers/enums/tab-billing-cycle.enum.mjs +7 -0
  8. package/dist/esm2022/natipay/tab-customers/index.mjs +4 -0
  9. package/dist/esm2022/natipay/tab-customers/interfaces/i-tab-customer.mjs +2 -0
  10. package/dist/esm2022/natipay/tab-customers/interfaces/index.mjs +2 -0
  11. package/dist/fesm2022/cecon-interfaces.mjs +78 -1
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/natipay/company/entities/company.entity.d.ts +4 -0
  14. package/dist/natipay/company/entities/company.entity.js +4 -0
  15. package/dist/natipay/company/interfaces/i-company.d.ts +4 -0
  16. package/dist/natipay/index.d.ts +1 -0
  17. package/dist/natipay/index.js +1 -0
  18. package/dist/natipay/tab-customers/entities/index.d.ts +1 -0
  19. package/dist/natipay/tab-customers/entities/index.js +7 -0
  20. package/dist/natipay/tab-customers/entities/tab-customer.entity.d.ts +40 -0
  21. package/dist/natipay/tab-customers/entities/tab-customer.entity.js +76 -0
  22. package/dist/natipay/tab-customers/enums/index.d.ts +1 -0
  23. package/dist/natipay/tab-customers/enums/index.js +5 -0
  24. package/dist/natipay/tab-customers/enums/tab-billing-cycle.enum.d.ts +5 -0
  25. package/dist/natipay/tab-customers/enums/tab-billing-cycle.enum.js +9 -0
  26. package/dist/natipay/tab-customers/index.d.ts +3 -0
  27. package/dist/natipay/tab-customers/index.js +19 -0
  28. package/dist/natipay/tab-customers/interfaces/i-tab-customer.d.ts +40 -0
  29. package/dist/natipay/tab-customers/interfaces/i-tab-customer.js +2 -0
  30. package/dist/natipay/tab-customers/interfaces/index.d.ts +1 -0
  31. package/dist/natipay/tab-customers/interfaces/index.js +2 -0
  32. package/package.json +1 -1
@@ -38,5 +38,9 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
38
38
  * Valor do limite de crédito da conta (null se não houver limite)
39
39
  */
40
40
  creditLimit: number | null;
41
+ /**
42
+ * Habilita o módulo de conta assinada (venda fiado) para esta loja.
43
+ */
44
+ tabAccountEnabled: boolean;
41
45
  constructor(data?: Partial<NatipayCompanyEntity>);
42
46
  }
@@ -38,6 +38,10 @@ var NatipayCompanyEntity = /** @class */ (function () {
38
38
  * Valor do limite de crédito da conta (null se não houver limite)
39
39
  */
40
40
  this.creditLimit = 0;
41
+ /**
42
+ * Habilita o módulo de conta assinada (venda fiado) para esta loja.
43
+ */
44
+ this.tabAccountEnabled = false;
41
45
  if (data) {
42
46
  for (var key in data) {
43
47
  if (data.hasOwnProperty(key) && key in this) {
@@ -42,4 +42,8 @@ export interface INatipayCompany {
42
42
  tags: string[];
43
43
  updatedAt: Date;
44
44
  version: string;
45
+ /**
46
+ * Habilita o módulo de conta assinada (venda fiado) para esta loja.
47
+ */
48
+ tabAccountEnabled: boolean;
45
49
  }
@@ -3,5 +3,6 @@ export * from './company';
3
3
  export * from './members';
4
4
  export * from './orders';
5
5
  export * from './payload';
6
+ export * from './tab-customers';
6
7
  export * from './tokens';
7
8
  export * from './user';
@@ -19,5 +19,6 @@ __exportStar(require("./company"), exports);
19
19
  __exportStar(require("./members"), exports);
20
20
  __exportStar(require("./orders"), exports);
21
21
  __exportStar(require("./payload"), exports);
22
+ __exportStar(require("./tab-customers"), exports);
22
23
  __exportStar(require("./tokens"), exports);
23
24
  __exportStar(require("./user"), exports);
@@ -0,0 +1 @@
1
+ export { TabCustomerEntity, TabCustomerNotificationChannelPreferencesEntity, TabCustomerNotificationPreferencesEntity, } from './tab-customer.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TabCustomerNotificationPreferencesEntity = exports.TabCustomerNotificationChannelPreferencesEntity = exports.TabCustomerEntity = void 0;
4
+ var tab_customer_entity_1 = require("./tab-customer.entity");
5
+ Object.defineProperty(exports, "TabCustomerEntity", { enumerable: true, get: function () { return tab_customer_entity_1.TabCustomerEntity; } });
6
+ Object.defineProperty(exports, "TabCustomerNotificationChannelPreferencesEntity", { enumerable: true, get: function () { return tab_customer_entity_1.TabCustomerNotificationChannelPreferencesEntity; } });
7
+ Object.defineProperty(exports, "TabCustomerNotificationPreferencesEntity", { enumerable: true, get: function () { return tab_customer_entity_1.TabCustomerNotificationPreferencesEntity; } });
@@ -0,0 +1,40 @@
1
+ import { EDocType } from '../../../general';
2
+ import { ETabBillingCycle } from '../enums/tab-billing-cycle.enum';
3
+ import { ITabCustomer, ITabCustomerNotificationChannelPreferences, ITabCustomerNotificationPreferences } from '../interfaces/i-tab-customer';
4
+ export declare class TabCustomerNotificationChannelPreferencesEntity implements ITabCustomerNotificationChannelPreferences {
5
+ newSale: boolean;
6
+ payment: boolean;
7
+ dueDate: boolean;
8
+ constructor(data?: Partial<TabCustomerNotificationChannelPreferencesEntity>);
9
+ }
10
+ export declare class TabCustomerNotificationPreferencesEntity implements ITabCustomerNotificationPreferences {
11
+ whatsapp: ITabCustomerNotificationChannelPreferences;
12
+ email: ITabCustomerNotificationChannelPreferences;
13
+ constructor(data?: Partial<TabCustomerNotificationPreferencesEntity>);
14
+ }
15
+ export declare class TabCustomerEntity implements ITabCustomer {
16
+ id: string;
17
+ containerId: string;
18
+ companyId: string;
19
+ name: string;
20
+ doc: string;
21
+ docType: EDocType;
22
+ email: string | null;
23
+ phoneNumber: string | null;
24
+ internationalCode: string | null;
25
+ billingCycle: ETabBillingCycle;
26
+ closingDayOfMonth: number | null;
27
+ creditLimit: number;
28
+ requiresAuthCode: boolean;
29
+ authCodeHash: string | null;
30
+ blocked: boolean;
31
+ blockedReason: string | null;
32
+ notificationPreferences: ITabCustomerNotificationPreferences;
33
+ activeInvoiceId: string | null;
34
+ invoiceSequence: number;
35
+ tags: string[];
36
+ active: boolean;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ constructor(data?: Partial<TabCustomerEntity>);
40
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TabCustomerEntity = exports.TabCustomerNotificationPreferencesEntity = exports.TabCustomerNotificationChannelPreferencesEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var tab_billing_cycle_enum_1 = require("../enums/tab-billing-cycle.enum");
6
+ var TabCustomerNotificationChannelPreferencesEntity = /** @class */ (function () {
7
+ function TabCustomerNotificationChannelPreferencesEntity(data) {
8
+ this.newSale = true;
9
+ this.payment = true;
10
+ this.dueDate = true;
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return TabCustomerNotificationChannelPreferencesEntity;
20
+ }());
21
+ exports.TabCustomerNotificationChannelPreferencesEntity = TabCustomerNotificationChannelPreferencesEntity;
22
+ var TabCustomerNotificationPreferencesEntity = /** @class */ (function () {
23
+ function TabCustomerNotificationPreferencesEntity(data) {
24
+ this.whatsapp = new TabCustomerNotificationChannelPreferencesEntity();
25
+ this.email = new TabCustomerNotificationChannelPreferencesEntity({
26
+ newSale: false,
27
+ payment: false,
28
+ dueDate: false,
29
+ });
30
+ if (data) {
31
+ for (var key in data) {
32
+ if (data.hasOwnProperty(key) && key in this) {
33
+ this[key] = data[key];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return TabCustomerNotificationPreferencesEntity;
39
+ }());
40
+ exports.TabCustomerNotificationPreferencesEntity = TabCustomerNotificationPreferencesEntity;
41
+ var TabCustomerEntity = /** @class */ (function () {
42
+ function TabCustomerEntity(data) {
43
+ this.id = '';
44
+ this.containerId = '';
45
+ this.companyId = '';
46
+ this.name = '';
47
+ this.doc = '';
48
+ this.docType = general_1.EDocType.CPF;
49
+ this.email = null;
50
+ this.phoneNumber = null;
51
+ this.internationalCode = null;
52
+ this.billingCycle = tab_billing_cycle_enum_1.ETabBillingCycle.MONTHLY;
53
+ this.closingDayOfMonth = null;
54
+ this.creditLimit = 0;
55
+ this.requiresAuthCode = false;
56
+ this.authCodeHash = null;
57
+ this.blocked = false;
58
+ this.blockedReason = null;
59
+ this.notificationPreferences = new TabCustomerNotificationPreferencesEntity();
60
+ this.activeInvoiceId = null;
61
+ this.invoiceSequence = 0;
62
+ this.tags = [];
63
+ this.active = true;
64
+ this.createdAt = new Date();
65
+ this.updatedAt = new Date();
66
+ if (data) {
67
+ for (var key in data) {
68
+ if (data.hasOwnProperty(key) && key in this) {
69
+ this[key] = data[key];
70
+ }
71
+ }
72
+ }
73
+ }
74
+ return TabCustomerEntity;
75
+ }());
76
+ exports.TabCustomerEntity = TabCustomerEntity;
@@ -0,0 +1 @@
1
+ export { ETabBillingCycle } from './tab-billing-cycle.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETabBillingCycle = void 0;
4
+ var tab_billing_cycle_enum_1 = require("./tab-billing-cycle.enum");
5
+ Object.defineProperty(exports, "ETabBillingCycle", { enumerable: true, get: function () { return tab_billing_cycle_enum_1.ETabBillingCycle; } });
@@ -0,0 +1,5 @@
1
+ export declare enum ETabBillingCycle {
2
+ WEEKLY = "WEEKLY",
3
+ BIWEEKLY = "BIWEEKLY",
4
+ MONTHLY = "MONTHLY"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETabBillingCycle = void 0;
4
+ var ETabBillingCycle;
5
+ (function (ETabBillingCycle) {
6
+ ETabBillingCycle["WEEKLY"] = "WEEKLY";
7
+ ETabBillingCycle["BIWEEKLY"] = "BIWEEKLY";
8
+ ETabBillingCycle["MONTHLY"] = "MONTHLY";
9
+ })(ETabBillingCycle || (exports.ETabBillingCycle = ETabBillingCycle = {}));
@@ -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,40 @@
1
+ import { EDocType } from '../../../general';
2
+ import { ETabBillingCycle } from '../enums/tab-billing-cycle.enum';
3
+ export interface ITabCustomerNotificationChannelPreferences {
4
+ newSale: boolean;
5
+ payment: boolean;
6
+ dueDate: boolean;
7
+ }
8
+ export interface ITabCustomerNotificationPreferences {
9
+ whatsapp: ITabCustomerNotificationChannelPreferences;
10
+ email: ITabCustomerNotificationChannelPreferences;
11
+ }
12
+ /**
13
+ * Cliente cadastrado numa loja para o módulo de conta assinada (venda fiado).
14
+ * Coleção Firestore: containers/{containerId}/companies/{companyId}/tab-customers
15
+ */
16
+ export interface ITabCustomer {
17
+ id: string;
18
+ containerId: string;
19
+ companyId: string;
20
+ name: string;
21
+ doc: string;
22
+ docType: EDocType;
23
+ email: string | null;
24
+ phoneNumber: string | null;
25
+ internationalCode: string | null;
26
+ billingCycle: ETabBillingCycle;
27
+ closingDayOfMonth: number | null;
28
+ creditLimit: number;
29
+ requiresAuthCode: boolean;
30
+ authCodeHash: string | null;
31
+ blocked: boolean;
32
+ blockedReason: string | null;
33
+ notificationPreferences: ITabCustomerNotificationPreferences;
34
+ activeInvoiceId: string | null;
35
+ invoiceSequence: number;
36
+ tags: string[];
37
+ active: boolean;
38
+ createdAt: Date;
39
+ updatedAt: Date;
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { ITabCustomer, ITabCustomerNotificationChannelPreferences, ITabCustomerNotificationPreferences } from './i-tab-customer';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "2.0.56",
3
+ "version": "2.0.58",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",