cecon-interfaces 1.7.5 → 1.7.8

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 (25) hide show
  1. package/dist/esm2022/general/enums/index.mjs +2 -1
  2. package/dist/esm2022/general/enums/international-doc-type.enum.mjs +42 -0
  3. package/dist/esm2022/payio/company/entities/company.entity.mjs +5 -4
  4. package/dist/esm2022/payio/company/interfaces/i-company.mjs +1 -1
  5. package/dist/esm2022/payio/global-products/entities/global-product.entity.mjs +2 -4
  6. package/dist/esm2022/payio/global-products/interfaces/i-global-products.mjs +1 -1
  7. package/dist/esm2022/payio/products/entities/product.entity.mjs +2 -4
  8. package/dist/esm2022/payio/products/interfaces/i-products.mjs +1 -1
  9. package/dist/fesm2022/cecon-interfaces.mjs +48 -9
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/general/enums/index.d.ts +1 -0
  12. package/dist/general/enums/index.js +3 -1
  13. package/dist/general/enums/international-doc-type.enum.d.ts +35 -0
  14. package/dist/general/enums/international-doc-type.enum.js +44 -0
  15. package/dist/package.json +1 -1
  16. package/dist/payio/company/entities/company.entity.d.ts +4 -3
  17. package/dist/payio/company/entities/company.entity.js +3 -2
  18. package/dist/payio/company/interfaces/i-company.d.ts +4 -3
  19. package/dist/payio/global-products/entities/global-product.entity.d.ts +1 -0
  20. package/dist/payio/global-products/entities/global-product.entity.js +1 -3
  21. package/dist/payio/global-products/interfaces/i-global-products.d.ts +1 -0
  22. package/dist/payio/products/entities/product.entity.d.ts +1 -0
  23. package/dist/payio/products/entities/product.entity.js +1 -3
  24. package/dist/payio/products/interfaces/i-products.d.ts +1 -0
  25. package/package.json +1 -1
@@ -6,6 +6,7 @@ export { EFrom } from './desenfila-from.enum';
6
6
  export { EDocType } from './doc-type.enum';
7
7
  export { EDiscountType } from './e-discount-type.enum';
8
8
  export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
9
+ export { EIntDocType } from './international-doc-type.enum';
9
10
  export { EIntervalType } from './interval-type.enum';
10
11
  export { EJwtStatus } from './jwt-status.enum';
11
12
  export { ELeadOrigin } from './lead-origin.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESubsStatus = exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
3
+ exports.ESubsStatus = exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EIntDocType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
4
4
  var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
5
5
  Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
6
6
  var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
@@ -17,6 +17,8 @@ var e_discount_type_enum_1 = require("./e-discount-type.enum");
17
17
  Object.defineProperty(exports, "EDiscountType", { enumerable: true, get: function () { return e_discount_type_enum_1.EDiscountType; } });
18
18
  var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
19
19
  Object.defineProperty(exports, "EFiscalDocModelCode", { enumerable: true, get: function () { return fiscal_doc_model_code_enum_1.EFiscalDocModelCode; } });
20
+ var international_doc_type_enum_1 = require("./international-doc-type.enum");
21
+ Object.defineProperty(exports, "EIntDocType", { enumerable: true, get: function () { return international_doc_type_enum_1.EIntDocType; } });
20
22
  var interval_type_enum_1 = require("./interval-type.enum");
21
23
  Object.defineProperty(exports, "EIntervalType", { enumerable: true, get: function () { return interval_type_enum_1.EIntervalType; } });
22
24
  var jwt_status_enum_1 = require("./jwt-status.enum");
@@ -0,0 +1,35 @@
1
+ export declare enum EIntDocType {
2
+ CPF = "CPF",
3
+ CNPJ = "CNPJ",
4
+ CUIL = "CUIL",
5
+ CUIT = "CUIT",
6
+ RUT_CL = "RUT_CL",
7
+ NIT_CO = "NIT_CO",
8
+ RUC_EC = "RUC_EC",
9
+ RUC_PE = "RUC_PE",
10
+ RUT_UY = "RUT_UY",
11
+ RUC_PY = "RUC_PY",
12
+ RIF_VE = "RIF_VE",
13
+ NIT_BO = "NIT_BO",
14
+ SSN = "SSN",
15
+ EIN = "EIN",
16
+ RFC = "RFC",
17
+ STEUER_ID = "STEUER_ID",
18
+ UST_IDNR = "UST_IDNR",
19
+ SIREN = "SIREN",
20
+ SIRET = "SIRET",
21
+ NIF_ES = "NIF_ES",
22
+ CIF_ES = "CIF_ES",
23
+ CODICE_FISCALE = "CODICE_FISCALE",
24
+ P_IVA = "P_IVA",
25
+ NINO = "NINO",
26
+ VAT_UK = "VAT_UK",
27
+ BSN = "BSN",
28
+ KVK = "KVK",
29
+ AHV = "AHV",
30
+ UID_CH = "UID_CH",
31
+ NIF_PT = "NIF_PT",
32
+ ID_ZA = "ID_ZA",
33
+ INN_PERSON = "INN_PERSON",
34
+ INN_COMPANY = "INN_COMPANY"
35
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EIntDocType = void 0;
4
+ var EIntDocType;
5
+ (function (EIntDocType) {
6
+ // América do Sul
7
+ EIntDocType["CPF"] = "CPF";
8
+ EIntDocType["CNPJ"] = "CNPJ";
9
+ EIntDocType["CUIL"] = "CUIL";
10
+ EIntDocType["CUIT"] = "CUIT";
11
+ EIntDocType["RUT_CL"] = "RUT_CL";
12
+ EIntDocType["NIT_CO"] = "NIT_CO";
13
+ EIntDocType["RUC_EC"] = "RUC_EC";
14
+ EIntDocType["RUC_PE"] = "RUC_PE";
15
+ EIntDocType["RUT_UY"] = "RUT_UY";
16
+ EIntDocType["RUC_PY"] = "RUC_PY";
17
+ EIntDocType["RIF_VE"] = "RIF_VE";
18
+ EIntDocType["NIT_BO"] = "NIT_BO";
19
+ // América do Norte
20
+ EIntDocType["SSN"] = "SSN";
21
+ EIntDocType["EIN"] = "EIN";
22
+ EIntDocType["RFC"] = "RFC";
23
+ // Europa
24
+ EIntDocType["STEUER_ID"] = "STEUER_ID";
25
+ EIntDocType["UST_IDNR"] = "UST_IDNR";
26
+ EIntDocType["SIREN"] = "SIREN";
27
+ EIntDocType["SIRET"] = "SIRET";
28
+ EIntDocType["NIF_ES"] = "NIF_ES";
29
+ EIntDocType["CIF_ES"] = "CIF_ES";
30
+ EIntDocType["CODICE_FISCALE"] = "CODICE_FISCALE";
31
+ EIntDocType["P_IVA"] = "P_IVA";
32
+ EIntDocType["NINO"] = "NINO";
33
+ EIntDocType["VAT_UK"] = "VAT_UK";
34
+ EIntDocType["BSN"] = "BSN";
35
+ EIntDocType["KVK"] = "KVK";
36
+ EIntDocType["AHV"] = "AHV";
37
+ EIntDocType["UID_CH"] = "UID_CH";
38
+ EIntDocType["NIF_PT"] = "NIF_PT";
39
+ // África
40
+ EIntDocType["ID_ZA"] = "ID_ZA";
41
+ // Rússia
42
+ EIntDocType["INN_PERSON"] = "INN_PERSON";
43
+ EIntDocType["INN_COMPANY"] = "INN_COMPANY";
44
+ })(EIntDocType || (exports.EIntDocType = EIntDocType = {}));
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.05",
3
+ "version": "1.7.08",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { EDocType, IPaymentProvider } from '../../../general';
1
+ import { EIntDocType, IPaymentProvider } from '../../../general';
2
2
  import { IPayioCompany } from '../interfaces/i-company';
3
3
  import { PayioAddressEntity } from './address.entity';
4
4
  export declare class PayioCompanyEntity implements IPayioCompany {
@@ -6,10 +6,11 @@ export declare class PayioCompanyEntity implements IPayioCompany {
6
6
  address: PayioAddressEntity;
7
7
  containerId: string;
8
8
  createdAt: Date;
9
+ currency: string;
10
+ country: string;
9
11
  doc: string;
10
- docType: EDocType;
12
+ docType: EIntDocType;
11
13
  email: string;
12
- fullName: string;
13
14
  id: string;
14
15
  imageUrl: string | null;
15
16
  internationalCode: string;
@@ -9,10 +9,11 @@ var PayioCompanyEntity = /** @class */ (function () {
9
9
  this.address = new address_entity_1.PayioAddressEntity();
10
10
  this.containerId = '';
11
11
  this.createdAt = new Date();
12
+ this.currency = 'BRL';
13
+ this.country = 'BR';
12
14
  this.doc = '';
13
- this.docType = general_1.EDocType.CNPJ;
15
+ this.docType = general_1.EIntDocType.CNPJ;
14
16
  this.email = '';
15
- this.fullName = '';
16
17
  this.id = '';
17
18
  this.imageUrl = null;
18
19
  this.internationalCode = '55';
@@ -1,4 +1,4 @@
1
- import { EDocType } from '../../../general/enums/doc-type.enum';
1
+ import { EIntDocType } from '../../../general';
2
2
  import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
3
3
  import { IPayioAddress } from './i-address';
4
4
  export interface IPayioCompany {
@@ -7,9 +7,8 @@ export interface IPayioCompany {
7
7
  containerId: string;
8
8
  createdAt: Date;
9
9
  doc: string;
10
- docType: EDocType;
10
+ docType: EIntDocType;
11
11
  email: string;
12
- fullName: string;
13
12
  id: string;
14
13
  imageUrl: string | null;
15
14
  internationalCode: string;
@@ -20,6 +19,8 @@ export interface IPayioCompany {
20
19
  sandbox: boolean;
21
20
  shortName: string;
22
21
  tags: string[];
22
+ currency: string;
23
+ country: string;
23
24
  updatedAt: Date;
24
25
  version: string;
25
26
  }
@@ -10,6 +10,7 @@ export declare class PayioGlobalProductEntity implements IPayioGlobalProduct {
10
10
  maxPrice: number;
11
11
  minPrice: number;
12
12
  name: string;
13
+ ncm: string | null;
13
14
  quantityPackaging: number;
14
15
  tags: string[];
15
16
  thumbnail: string | null;
@@ -2,10 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioGlobalProductEntity = void 0;
4
4
  var PayioGlobalProductEntity = /** @class */ (function () {
5
- // #endregion Properties (16)
6
- // #region Constructors (1)
7
5
  function PayioGlobalProductEntity(data) {
8
- // #region Properties (16)
9
6
  this.active = true;
10
7
  this.avgPrice = 0;
11
8
  this.brand = '';
@@ -16,6 +13,7 @@ var PayioGlobalProductEntity = /** @class */ (function () {
16
13
  this.maxPrice = 0;
17
14
  this.minPrice = 0;
18
15
  this.name = '';
16
+ this.ncm = null;
19
17
  this.quantityPackaging = 0;
20
18
  this.tags = [];
21
19
  this.thumbnail = null;
@@ -7,6 +7,7 @@ export interface IPayioGlobalProduct {
7
7
  id: string;
8
8
  lastPrices: number[];
9
9
  maxPrice: number;
10
+ ncm: string | null;
10
11
  minPrice: number;
11
12
  name: string;
12
13
  quantityPackaging: number;
@@ -6,6 +6,7 @@ export declare class PayioProductEntity implements IPayioProduct {
6
6
  createdAt: Date;
7
7
  id: string;
8
8
  name: string;
9
+ ncm: string | null;
9
10
  price: number;
10
11
  quantityPackaging: number;
11
12
  tags: string[];
@@ -2,16 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioProductEntity = void 0;
4
4
  var PayioProductEntity = /** @class */ (function () {
5
- // #endregion Properties (13)
6
- // #region Constructors (1)
7
5
  function PayioProductEntity(data) {
8
- // #region Properties (13)
9
6
  this.active = true;
10
7
  this.brand = '';
11
8
  this.code = '';
12
9
  this.createdAt = new Date();
13
10
  this.id = '';
14
11
  this.name = '';
12
+ this.ncm = '';
15
13
  this.price = 0;
16
14
  this.quantityPackaging = 0;
17
15
  this.tags = [];
@@ -10,6 +10,7 @@ export interface IPayioProduct {
10
10
  tags: string[];
11
11
  thumbnail: string | null;
12
12
  unit: string;
13
+ ncm: string | null;
13
14
  updatedAt: Date;
14
15
  weight: number;
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.05",
3
+ "version": "1.7.08",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",