zDocumento
This commit is contained in:
parent
48125b5369
commit
1e219ad657
8 changed files with 74 additions and 3 deletions
|
|
@ -36,6 +36,7 @@ __reExport(index_exports, require("./tipagemRotas"), module.exports);
|
|||
__reExport(index_exports, require("./unidades_medida"), module.exports);
|
||||
__reExport(index_exports, require("./uuid"), module.exports);
|
||||
__reExport(index_exports, require("./variaveisComuns"), module.exports);
|
||||
__reExport(index_exports, require("./zCoordenadas"), module.exports);
|
||||
__reExport(index_exports, require("./zDocumento"), module.exports);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
|
|
@ -60,5 +61,6 @@ __reExport(index_exports, require("./zDocumento"), module.exports);
|
|||
...require("./unidades_medida"),
|
||||
...require("./uuid"),
|
||||
...require("./variaveisComuns"),
|
||||
...require("./zCoordenadas"),
|
||||
...require("./zDocumento")
|
||||
});
|
||||
|
|
|
|||
44
dist-back/zCoordenadas.js
Normal file
44
dist-back/zCoordenadas.js
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var zCoordenadas_exports = {};
|
||||
__export(zCoordenadas_exports, {
|
||||
zCoordenadas: () => zCoordenadas
|
||||
});
|
||||
module.exports = __toCommonJS(zCoordenadas_exports);
|
||||
var import_zod = __toESM(require("zod"));
|
||||
const zCoordenadas = import_zod.default.object({
|
||||
formato: import_zod.default.literal("decimal").default("decimal"),
|
||||
datum: import_zod.default.literal("EPSG:4326").default("EPSG:4326"),
|
||||
latitude: import_zod.default.number(),
|
||||
longitude: import_zod.default.number()
|
||||
});
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
zCoordenadas
|
||||
});
|
||||
|
|
@ -564,8 +564,20 @@ declare const nomeVariavel: (v: {
|
|||
[key: string]: any;
|
||||
}) => string;
|
||||
|
||||
/**
|
||||
* No futuro podemos melhorar este Zod para incluir mais formatos de coordenadas.
|
||||
*
|
||||
*/
|
||||
|
||||
declare const zCoordenadas: z.ZodObject<{
|
||||
formato: z.ZodDefault<z.ZodLiteral<"decimal">>;
|
||||
datum: z.ZodDefault<z.ZodLiteral<"EPSG:4326">>;
|
||||
latitude: z.ZodNumber;
|
||||
longitude: z.ZodNumber;
|
||||
}, z.core.$strip>;
|
||||
|
||||
declare const zDocCnpj: z.ZodString;
|
||||
declare const zDocCpf: z.ZodString;
|
||||
declare const zDocumento: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
||||
|
||||
export { Produtos, TipagemRotas, type TipoPayloadAuditoria, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltroDelta, defineDayjsBr, erUuid, esperar, extensoes, iniciarDayjsBr, iniciarFiltroDelta, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadorFiltroDeltaDetalhes, operadores, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoColunaFiltroDelta, type tipoCondicaoFiltroDelta, type tipoCondicaoFiltroDeltaTipado, type tipoFiltro, type tipoFiltroDelta, type tipoFiltroDeltaColunaTipada, type tipoOperadorFiltroDelta, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zColunaFiltroDelta, zCondicaoFiltroDelta, zDocCnpj, zDocCpf, zDocumento, zFiltro, zFiltroDelta, zOperadorFiltroDelta, zOperadores };
|
||||
export { Produtos, TipagemRotas, type TipoPayloadAuditoria, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltroDelta, defineDayjsBr, erUuid, esperar, extensoes, iniciarDayjsBr, iniciarFiltroDelta, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadorFiltroDeltaDetalhes, operadores, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoColunaFiltroDelta, type tipoCondicaoFiltroDelta, type tipoCondicaoFiltroDeltaTipado, type tipoFiltro, type tipoFiltroDelta, type tipoFiltroDeltaColunaTipada, type tipoOperadorFiltroDelta, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zColunaFiltroDelta, zCondicaoFiltroDelta, zCoordenadas, zDocCnpj, zDocCpf, zDocumento, zFiltro, zFiltroDelta, zOperadorFiltroDelta, zOperadores };
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-comuns",
|
||||
"version": "0.346.0",
|
||||
"version": "0.347.0",
|
||||
"description": "",
|
||||
"main": "./dist-front/index.mjs",
|
||||
"module": "./dist-front/index.mjs",
|
||||
|
|
|
|||
BIN
pacote.tgz
BIN
pacote.tgz
Binary file not shown.
|
|
@ -19,4 +19,5 @@ export * from "./tipagemRotas"
|
|||
export * from "./unidades_medida"
|
||||
export * from "./uuid"
|
||||
export * from "./variaveisComuns"
|
||||
export * from "./zCoordenadas"
|
||||
export * from "./zDocumento"
|
||||
|
|
|
|||
12
src/zCoordenadas.ts
Normal file
12
src/zCoordenadas.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* No futuro podemos melhorar este Zod para incluir mais formatos de coordenadas.
|
||||
*
|
||||
*/
|
||||
|
||||
import z from "zod"
|
||||
export const zCoordenadas = z.object({
|
||||
formato: z.literal("decimal").default("decimal"),
|
||||
datum: z.literal("EPSG:4326").default("EPSG:4326"),
|
||||
latitude: z.number(),
|
||||
longitude: z.number(),
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue