validation-br 2.6.0-beta.0 → 2.6.0-beta.1
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.
- package/dist/cjs/cbi_sinter.d.ts +12 -0
- package/dist/cjs/cbi_sinter.js +11 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +3 -0
- package/dist/cjs/standard-schema/index.d.ts +2 -0
- package/dist/cjs/standard-schema/index.js +3 -1
- package/dist/esm/cbi_sinter.d.ts +12 -0
- package/dist/esm/cbi_sinter.js +8 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/standard-schema/index.d.ts +2 -0
- package/dist/esm/standard-schema/index.js +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CIB } from './cib';
|
|
2
|
+
/**
|
|
3
|
+
* Nome antigo da classe CIB (Cadastro Imobiliário Brasileiro), mantido para não quebrar
|
|
4
|
+
* quem importa de `validation-br/cbi_sinter`.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use CIB, de `validation-br/cib`. Será removido em uma versão futura.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CBISinter: typeof CIB;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use CIB, de `validation-br/cib`. Será removido em uma versão futura.
|
|
11
|
+
*/
|
|
12
|
+
export type CBISinter = CIB;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CBISinter = void 0;
|
|
4
|
+
const cib_1 = require("./cib");
|
|
5
|
+
/**
|
|
6
|
+
* Nome antigo da classe CIB (Cadastro Imobiliário Brasileiro), mantido para não quebrar
|
|
7
|
+
* quem importa de `validation-br/cbi_sinter`.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Use CIB, de `validation-br/cib`. Será removido em uma versão futura.
|
|
10
|
+
*/
|
|
11
|
+
exports.CBISinter = cib_1.CIB;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -24,4 +24,6 @@ export declare function isCAEPF(value: string): boolean;
|
|
|
24
24
|
export declare function isCEP(value: string): boolean;
|
|
25
25
|
export declare function isCertidao(value: string): boolean;
|
|
26
26
|
export declare function isCIB(value: string): boolean;
|
|
27
|
+
/** @deprecated Use isCIB(). Será removido em uma versão futura. */
|
|
28
|
+
export declare function isCBISinter(value: string): boolean;
|
|
27
29
|
export declare function isUF(value: string): boolean;
|
package/dist/cjs/index.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.isCAEPF = isCAEPF;
|
|
|
21
21
|
exports.isCEP = isCEP;
|
|
22
22
|
exports.isCertidao = isCertidao;
|
|
23
23
|
exports.isCIB = isCIB;
|
|
24
|
+
exports.isCBISinter = isCBISinter;
|
|
24
25
|
exports.isUF = isUF;
|
|
25
26
|
const cnh_1 = require("./cnh");
|
|
26
27
|
const cnpj_1 = require("./cnpj");
|
|
@@ -78,4 +79,6 @@ function isCAEPF(value) { return caepf_1.CAEPF.isValid(value); }
|
|
|
78
79
|
function isCEP(value) { return cep_1.CEP.isValid(value); }
|
|
79
80
|
function isCertidao(value) { return certidao_1.Certidao.isValid(value); }
|
|
80
81
|
function isCIB(value) { return cib_1.CIB.isValid(value); }
|
|
82
|
+
/** @deprecated Use isCIB(). Será removido em uma versão futura. */
|
|
83
|
+
function isCBISinter(value) { return cib_1.CIB.isValid(value); }
|
|
81
84
|
function isUF(value) { return uf_1.UF.isValid(value); }
|
|
@@ -29,6 +29,8 @@ export declare const carPlateSchema: import("./types").SchemaFactory<CarPlate>;
|
|
|
29
29
|
export declare const cepSchema: import("./types").SchemaFactory<CEP>;
|
|
30
30
|
export declare const certidaoSchema: import("./types").SchemaFactory<Certidao>;
|
|
31
31
|
export declare const cibSchema: import("./types").SchemaFactory<CIB>;
|
|
32
|
+
/** @deprecated Use cibSchema. Será removido em uma versão futura. */
|
|
33
|
+
export declare const cbiSinterSchema: import("./types").SchemaFactory<CIB>;
|
|
32
34
|
export declare const cnhSchema: import("./types").SchemaFactory<CNH>;
|
|
33
35
|
export declare const cnpjSchema: import("./types").SchemaFactory<CNPJ>;
|
|
34
36
|
export declare const cpfSchema: import("./types").SchemaFactory<CPF>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uuidSchema = exports.ufSchema = exports.tituloEleitorSchema = exports.renavamSchema = exports.postalTrackCodeSchema = exports.pixKeySchema = exports.pixCopyPasteSchema = exports.pixSchema = exports.pisSchema = exports.phoneSchema = exports.nup17Schema = exports.judicialProcessSchema = exports.emailSchema = exports.cpfSchema = exports.cnpjSchema = exports.cnhSchema = exports.cibSchema = exports.certidaoSchema = exports.cepSchema = exports.carPlateSchema = exports.caepfSchema = exports.boletoSchema = exports.createSchema = void 0;
|
|
3
|
+
exports.uuidSchema = exports.ufSchema = exports.tituloEleitorSchema = exports.renavamSchema = exports.postalTrackCodeSchema = exports.pixKeySchema = exports.pixCopyPasteSchema = exports.pixSchema = exports.pisSchema = exports.phoneSchema = exports.nup17Schema = exports.judicialProcessSchema = exports.emailSchema = exports.cpfSchema = exports.cnpjSchema = exports.cnhSchema = exports.cbiSinterSchema = exports.cibSchema = exports.certidaoSchema = exports.cepSchema = exports.carPlateSchema = exports.caepfSchema = exports.boletoSchema = exports.createSchema = void 0;
|
|
4
4
|
const boleto_1 = require("../boleto");
|
|
5
5
|
const caepf_1 = require("../caepf");
|
|
6
6
|
const carplate_1 = require("../carplate");
|
|
@@ -31,6 +31,8 @@ exports.carPlateSchema = (0, create_schema_1.bindSchema)(carplate_1.CarPlate);
|
|
|
31
31
|
exports.cepSchema = (0, create_schema_1.bindSchema)(cep_1.CEP);
|
|
32
32
|
exports.certidaoSchema = (0, create_schema_1.bindSchema)(certidao_1.Certidao);
|
|
33
33
|
exports.cibSchema = (0, create_schema_1.bindSchema)(cib_1.CIB);
|
|
34
|
+
/** @deprecated Use cibSchema. Será removido em uma versão futura. */
|
|
35
|
+
exports.cbiSinterSchema = exports.cibSchema;
|
|
34
36
|
exports.cnhSchema = (0, create_schema_1.bindSchema)(cnh_1.CNH);
|
|
35
37
|
exports.cnpjSchema = (0, create_schema_1.bindSchema)(cnpj_1.CNPJ);
|
|
36
38
|
exports.cpfSchema = (0, create_schema_1.bindSchema)(cpf_1.CPF);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CIB } from './cib';
|
|
2
|
+
/**
|
|
3
|
+
* Nome antigo da classe CIB (Cadastro Imobiliário Brasileiro), mantido para não quebrar
|
|
4
|
+
* quem importa de `validation-br/cbi_sinter`.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use CIB, de `validation-br/cib`. Será removido em uma versão futura.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CBISinter: typeof CIB;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use CIB, de `validation-br/cib`. Será removido em uma versão futura.
|
|
11
|
+
*/
|
|
12
|
+
export type CBISinter = CIB;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CIB } from './cib.js';
|
|
2
|
+
/**
|
|
3
|
+
* Nome antigo da classe CIB (Cadastro Imobiliário Brasileiro), mantido para não quebrar
|
|
4
|
+
* quem importa de `validation-br/cbi_sinter`.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use CIB, de `validation-br/cib`. Será removido em uma versão futura.
|
|
7
|
+
*/
|
|
8
|
+
export const CBISinter = CIB;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -24,4 +24,6 @@ export declare function isCAEPF(value: string): boolean;
|
|
|
24
24
|
export declare function isCEP(value: string): boolean;
|
|
25
25
|
export declare function isCertidao(value: string): boolean;
|
|
26
26
|
export declare function isCIB(value: string): boolean;
|
|
27
|
+
/** @deprecated Use isCIB(). Será removido em uma versão futura. */
|
|
28
|
+
export declare function isCBISinter(value: string): boolean;
|
|
27
29
|
export declare function isUF(value: string): boolean;
|
package/dist/esm/index.js
CHANGED
|
@@ -52,4 +52,6 @@ export function isCAEPF(value) { return CAEPF.isValid(value); }
|
|
|
52
52
|
export function isCEP(value) { return CEP.isValid(value); }
|
|
53
53
|
export function isCertidao(value) { return Certidao.isValid(value); }
|
|
54
54
|
export function isCIB(value) { return CIB.isValid(value); }
|
|
55
|
+
/** @deprecated Use isCIB(). Será removido em uma versão futura. */
|
|
56
|
+
export function isCBISinter(value) { return CIB.isValid(value); }
|
|
55
57
|
export function isUF(value) { return UF.isValid(value); }
|
|
@@ -29,6 +29,8 @@ export declare const carPlateSchema: import("./types").SchemaFactory<CarPlate>;
|
|
|
29
29
|
export declare const cepSchema: import("./types").SchemaFactory<CEP>;
|
|
30
30
|
export declare const certidaoSchema: import("./types").SchemaFactory<Certidao>;
|
|
31
31
|
export declare const cibSchema: import("./types").SchemaFactory<CIB>;
|
|
32
|
+
/** @deprecated Use cibSchema. Será removido em uma versão futura. */
|
|
33
|
+
export declare const cbiSinterSchema: import("./types").SchemaFactory<CIB>;
|
|
32
34
|
export declare const cnhSchema: import("./types").SchemaFactory<CNH>;
|
|
33
35
|
export declare const cnpjSchema: import("./types").SchemaFactory<CNPJ>;
|
|
34
36
|
export declare const cpfSchema: import("./types").SchemaFactory<CPF>;
|
|
@@ -28,6 +28,8 @@ export const carPlateSchema = /*#__PURE__*/ bindSchema(CarPlate);
|
|
|
28
28
|
export const cepSchema = /*#__PURE__*/ bindSchema(CEP);
|
|
29
29
|
export const certidaoSchema = /*#__PURE__*/ bindSchema(Certidao);
|
|
30
30
|
export const cibSchema = /*#__PURE__*/ bindSchema(CIB);
|
|
31
|
+
/** @deprecated Use cibSchema. Será removido em uma versão futura. */
|
|
32
|
+
export const cbiSinterSchema = cibSchema;
|
|
31
33
|
export const cnhSchema = /*#__PURE__*/ bindSchema(CNH);
|
|
32
34
|
export const cnpjSchema = /*#__PURE__*/ bindSchema(CNPJ);
|
|
33
35
|
export const cpfSchema = /*#__PURE__*/ bindSchema(CPF);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "validation-br",
|
|
3
3
|
"description": "Brazilian personal documents validation - cpf, cnpj, titulo, pis/pasep, cnh, renavam, processos judiciais, protocolo federal, código de rastreamento dos correios",
|
|
4
|
-
"version": "2.6.0-beta.
|
|
4
|
+
"version": "2.6.0-beta.1",
|
|
5
5
|
"author": "Cláudio Medeiros <klawdyo@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"boleto": ["dist/cjs/boleto.d.ts"],
|
|
40
40
|
"caepf": ["dist/cjs/caepf.d.ts"],
|
|
41
41
|
"carplate": ["dist/cjs/carplate.d.ts"],
|
|
42
|
+
"cbi_sinter": ["dist/cjs/cbi_sinter.d.ts"],
|
|
42
43
|
"cep": ["dist/cjs/cep.d.ts"],
|
|
43
44
|
"certidao": ["dist/cjs/certidao.d.ts"],
|
|
44
45
|
"cib": ["dist/cjs/cib.d.ts"],
|