@ozmap/ozmap-sdk
Version:
Use this sdk to access ozmap plataform and connect it to your own systems.
1,076 lines (1,071 loc) • 3.24 MB
TypeScript
import { AxiosInstance, AxiosError, AxiosResponse, AxiosRequestConfig } from 'axios';
import { z, ZodSchema } from 'zod';
import _ from 'lodash';
import * as bson_objectid from 'bson-objectid';
import bson_objectid__default from 'bson-objectid';
declare const externalId: z.ZodOptional<z.ZodAny>;
declare const stringOrObjectId: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid__default, z.ZodTypeDef, bson_objectid__default>]>;
declare const coordinates: z.ZodEffects<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, [number, number], [number, number]>;
declare const BaseModelSchema: z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid__default, z.ZodTypeDef, bson_objectid__default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid__default, z.ZodTypeDef, bson_objectid__default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid__default, z.ZodTypeDef, bson_objectid__default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid__default) & (string | bson_objectid__default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid__default) & (string | bson_objectid__default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid__default) & (string | bson_objectid__default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
_id?: string | bson_objectid__default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid__default) & (string | bson_objectid__default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}, {
id: (string | bson_objectid__default) & (string | bson_objectid__default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
_id?: string | bson_objectid__default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid__default) & (string | bson_objectid__default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}>;
type BaseModel = z.infer<typeof BaseModelSchema>;
declare enum BaseBoxKind {
BOX = "Box",
BUILDING = "Building",
PROPERTY = "Property",
POP = "Pop",
CABLE_STUB = "CableStub"
}
declare const BaseBoxDataSchema: z.ZodObject<{
tags: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
project: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
cables: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
pole: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
name: z.ZodOptional<z.ZodString>;
kind: z.ZodNativeEnum<typeof BaseBoxKind>;
observation: z.ZodOptional<z.ZodString>;
coords: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
}, "strip", z.ZodTypeAny, {
tags: (string | bson_objectid.default)[];
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
cables: (string | bson_objectid.default)[];
kind: BaseBoxKind;
coords: number[];
pole?: string | bson_objectid.default | undefined;
name?: string | undefined;
observation?: string | undefined;
}, {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
kind: BaseBoxKind;
coords: number[];
tags?: (string | bson_objectid.default)[] | undefined;
cables?: (string | bson_objectid.default)[] | undefined;
pole?: string | bson_objectid.default | undefined;
name?: string | undefined;
observation?: string | undefined;
}>;
declare const BaseBoxSchema: z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
tags: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
project: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
cables: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
pole: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
name: z.ZodOptional<z.ZodString>;
kind: z.ZodNativeEnum<typeof BaseBoxKind>;
observation: z.ZodOptional<z.ZodString>;
coords: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
tags: (string | bson_objectid.default)[];
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
cables: (string | bson_objectid.default)[];
kind: BaseBoxKind;
coords: number[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
pole?: string | bson_objectid.default | undefined;
name?: string | undefined;
observation?: string | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
kind: BaseBoxKind;
coords: number[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
tags?: (string | bson_objectid.default)[] | undefined;
cables?: (string | bson_objectid.default)[] | undefined;
pole?: string | bson_objectid.default | undefined;
name?: string | undefined;
observation?: string | undefined;
}>;
type BaseBox = z.infer<typeof BaseBoxSchema>;
declare enum BasePointKind {
POLE = "Pole",
POINT = "Point",
JUNCTION_BOX = "JunctionBox"
}
declare const BasePointDataSchema: z.ZodObject<{
adjacents: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
tags: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
kind: z.ZodNativeEnum<typeof BasePointKind>;
coords: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
}, "strip", z.ZodTypeAny, {
tags: (string | bson_objectid.default)[];
kind: BasePointKind;
coords: number[];
adjacents: (string | bson_objectid.default)[];
}, {
kind: BasePointKind;
coords: number[];
adjacents?: (string | bson_objectid.default)[] | undefined;
tags?: (string | bson_objectid.default)[] | undefined;
}>;
declare const BasePointSchema: z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
adjacents: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
tags: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
kind: z.ZodNativeEnum<typeof BasePointKind>;
coords: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
tags: (string | bson_objectid.default)[];
kind: BasePointKind;
coords: number[];
adjacents: (string | bson_objectid.default)[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
kind: BasePointKind;
coords: number[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
adjacents?: (string | bson_objectid.default)[] | undefined;
tags?: (string | bson_objectid.default)[] | undefined;
}>;
type BasePoint = z.infer<typeof BasePointSchema>;
declare const BoxSchema: z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
name: z.ZodString;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
kind: z.ZodLiteral<BaseBoxKind.BOX>;
observation: z.ZodOptional<z.ZodString>;
coords: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
default_reserve: z.ZodDefault<z.ZodNumber>;
draft: z.ZodDefault<z.ZodBoolean>;
address: z.ZodOptional<z.ZodString>;
shared: z.ZodDefault<z.ZodBoolean>;
hierarchyLevel: z.ZodNumber;
certified: z.ZodDefault<z.ZodBoolean>;
implanted: z.ZodBoolean;
tags: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
name: z.ZodString;
allowedTypes: z.ZodArray<z.ZodEnum<["cable", "box", "pop", "tower", "property", "client", "building", "pole", "prospect", "post", "region", "horizontalCondominium", "pendency", "antenna", "sector", "battery", "radio", "shelf", "junctionBox", "duct", "splitter.ports"]>, "many">;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
allowedTypes: ("pop" | "pole" | "cable" | "box" | "tower" | "property" | "client" | "building" | "prospect" | "post" | "region" | "horizontalCondominium" | "pendency" | "antenna" | "sector" | "battery" | "radio" | "shelf" | "junctionBox" | "duct" | "splitter.ports")[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
allowedTypes: ("pop" | "pole" | "cable" | "box" | "tower" | "property" | "client" | "building" | "prospect" | "post" | "region" | "horizontalCondominium" | "pendency" | "antenna" | "sector" | "battery" | "radio" | "shelf" | "junctionBox" | "duct" | "splitter.ports")[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}>]>, "many">>;
project: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
name: z.ZodString;
identifier: z.ZodOptional<z.ZodString>;
parents: z.ZodDefault<z.ZodArray<z.ZodObject<{
project: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
}, "strip", z.ZodTypeAny, {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}, {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}>, "many">>;
lat: z.ZodDefault<z.ZodNumber>;
lng: z.ZodDefault<z.ZodNumber>;
defaultPonPotency: z.ZodNumber;
defaultDropSize: z.ZodOptional<z.ZodNumber>;
hasLogo: z.ZodDefault<z.ZodBoolean>;
drop: z.ZodObject<{
type: z.ZodObject<{
cableType: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
}, "strip", z.ZodTypeAny, {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}, {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}>;
maxSize: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
};
maxSize: number;
}, {
type: {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
};
maxSize: number;
}>;
area: z.ZodObject<{
type: z.ZodLiteral<"Polygon">;
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
}, "strip", z.ZodTypeAny, {
type: "Polygon";
coordinates: [number, number][][];
}, {
type: "Polygon";
coordinates: [number, number][][];
}>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
lng: number;
lat: number;
parents: {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}[];
defaultPonPotency: number;
hasLogo: boolean;
drop: {
type: {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
};
maxSize: number;
};
area: {
type: "Polygon";
coordinates: [number, number][][];
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
identifier?: string | undefined;
defaultDropSize?: number | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
defaultPonPotency: number;
drop: {
type: {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
};
maxSize: number;
};
area: {
type: "Polygon";
coordinates: [number, number][][];
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
identifier?: string | undefined;
parents?: {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}[] | undefined;
lat?: number | undefined;
lng?: number | undefined;
defaultDropSize?: number | undefined;
hasLogo?: boolean | undefined;
}>]>;
pole: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
adjacents: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
tags: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
kind: z.ZodNativeEnum<typeof BasePointKind>;
coords: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
tags: (string | bson_objectid.default)[];
kind: BasePointKind;
coords: number[];
adjacents: (string | bson_objectid.default)[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
kind: BasePointKind;
coords: number[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
adjacents?: (string | bson_objectid.default)[] | undefined;
tags?: (string | bson_objectid.default)[] | undefined;
}>]>;
color: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
color: z.ZodString;
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
color: string;
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
color: string;
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}>]>>;
fill_color: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
color: z.ZodString;
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
color: string;
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
color: string;
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}>]>>;
boxType: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
code: z.ZodString;
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
description: z.ZodOptional<z.ZodString>;
brand: z.ZodOptional<z.ZodString>;
prefix: z.ZodString;
mold: z.ZodOptional<z.ZodString>;
default_level: z.ZodOptional<z.ZodNumber>;
default_reserve: z.ZodDefault<z.ZodNumber>;
config: z.ZodObject<{
base: z.ZodObject<{
color: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
color: string;
}, {
color?: string | undefined;
}>;
regular: z.ZodObject<{
fillColor: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
fillColor: string;
}, {
fillColor?: string | undefined;
}>;
not_implanted: z.ZodObject<{
fillColor: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
fillColor: string;
}, {
fillColor?: string | undefined;
}>;
draft: z.ZodObject<{
fillColor: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
fillColor: string;
}, {
fillColor?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
base: {
color: string;
};
regular: {
fillColor: string;
};
not_implanted: {
fillColor: string;
};
draft: {
fillColor: string;
};
}, {
base: {
color?: string | undefined;
};
regular: {
fillColor?: string | undefined;
};
not_implanted: {
fillColor?: string | undefined;
};
draft: {
fillColor?: string | undefined;
};
}>;
default_template: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, z.ZodObject<{
_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>>;
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
external_id: z.ZodOptional<z.ZodString>;
creatorData: z.ZodOptional<z.ZodObject<{
id: z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>;
name: z.ZodString;
username: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
}>>;
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
deletedAt: z.ZodOptional<z.ZodDate>;
name: z.ZodString;
structure: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
positions: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
topology: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
structure: {};
positions: {};
topology: {};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
}, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
structure: {};
positions: {};
topology: {};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
code: string;
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
prefix: string;
default_reserve: number;
config: {
base: {
color: string;
};
regular: {
fillColor: string;
};
not_implanted: {
fillColor: string;
};
draft: {
fillColor: string;
};
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
brand?: string | undefined;
mold?: string | undefined;
default_level?: number | undefined;
default_template?: string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
structure: {};
positions: {};
topology: {};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
} | undefined;
}, {
code: string;
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
prefix: string;
config: {
base: {
color?: string | undefined;
};
regular: {
fillColor?: string | undefined;
};
not_implanted: {
fillColor?: string | undefined;
};
draft: {
fillColor?: string | undefined;
};
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
brand?: string | undefined;
mold?: string | undefined;
default_level?: number | undefined;
default_reserve?: number | undefined;
default_template?: string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
structure: {};
positions: {};
topology: {};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
} | undefined;
}>]>;
underground: z.ZodBoolean;
cables: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<bson_objectid.default, z.ZodTypeDef, bson_objectid.default>]>, "many">>;
}, "strip", z.ZodTypeAny, {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
tags: (string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
allowedTypes: ("pop" | "pole" | "cable" | "box" | "tower" | "property" | "client" | "building" | "prospect" | "post" | "region" | "horizontalCondominium" | "pendency" | "antenna" | "sector" | "battery" | "radio" | "shelf" | "junctionBox" | "duct" | "splitter.ports")[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
})[];
project: (string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
lng: number;
lat: number;
parents: {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}[];
defaultPonPotency: number;
hasLogo: boolean;
drop: {
type: {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
};
maxSize: number;
};
area: {
type: "Polygon";
coordinates: [number, number][][];
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
identifier?: string | undefined;
defaultDropSize?: number | undefined;
}) & (string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
lng: number;
lat: number;
parents: {
project: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
}[];
defaultPonPotency: number;
hasLogo: boolean;
drop: {
type: {
cableType: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
};
maxSize: number;
};
area: {
type: "Polygon";
coordinates: [number, number][][];
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
identifier?: string | undefined;
defaultDropSize?: number | undefined;
} | undefined);
cables: (string | bson_objectid.default)[];
pole: (string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
tags: (string | bson_objectid.default)[];
kind: BasePointKind;
coords: number[];
adjacents: (string | bson_objectid.default)[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
}) & (string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
tags: (string | bson_objectid.default)[];
kind: BasePointKind;
coords: number[];
adjacents: (string | bson_objectid.default)[];
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
} | undefined);
kind: BaseBoxKind.BOX;
coords: number[];
default_reserve: number;
draft: boolean;
shared: boolean;
hierarchyLevel: number;
boxType: (string | bson_objectid.default | {
code: string;
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
prefix: string;
default_reserve: number;
config: {
base: {
color: string;
};
regular: {
fillColor: string;
};
not_implanted: {
fillColor: string;
};
draft: {
fillColor: string;
};
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
brand?: string | undefined;
mold?: string | undefined;
default_level?: number | undefined;
default_template?: string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
structure: {};
positions: {};
topology: {};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
} | undefined;
}) & (string | bson_objectid.default | {
code: string;
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
prefix: string;
default_reserve: number;
config: {
base: {
color: string;
};
regular: {
fillColor: string;
};
not_implanted: {
fillColor: string;
};
draft: {
fillColor: string;
};
};
_id?: string | bson_objectid.default | undefined;
external_id?: string | undefined;
creatorData?: {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
username: string;
} | undefined;
deletedAt?: Date | undefined;
description?: string | undefined;
brand?: string | undefined;
mold?: string | undefined;
default_level?: number | undefined;
default_template?: string | bson_objectid.default | {
id: (string | bson_objectid.default) & (string | bson_objectid.default | undefined);
name: string;
createdAt: (string | Date) & (string | Date | undefined);
updatedAt: (string | Date) & (string | Date | undefined);
structure: {};