first commit

This commit is contained in:
2026-07-16 20:48:43 -03:00
commit 5696cee264
1111 changed files with 322270 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
export interface ICompany {
id?: string;
name: string;
slug: string;
description: string;
categoryId: number;
ownerId: string;
banned?: boolean;
// ... we don't need all the properties in the proxy model, just what we return/use
}
export type PaginateCompaniesParams = {
_id?: string;
name?: string;
ownerId?: string;
banned?: boolean;
page: number;
limit: number;
};
export type PaginateCompaniesResults = {
data: any[];
page: number;
pages: number;
};
export type UpdateCompanyParams = {
id: string;
name?: string;
description?: string;
categoryId?: number;
};
export type SetCompanyBannedParams = {
id: string;
banned: boolean;
};
+3
View File
@@ -0,0 +1,3 @@
export interface INonce {
nonce: string;
}
+6
View File
@@ -0,0 +1,6 @@
import { INonce } from "./Nonce.Model";
export interface IPayload {
nonce: INonce;
signature: string;
}
+28
View File
@@ -0,0 +1,28 @@
export interface IService {
id?: string;
companyId: string;
categoryId: number;
name: string;
description: string;
length: number;
price: number;
banned?: boolean;
}
export type PaginateServicesParams = {
companyId?: string;
banned?: boolean;
page: number;
limit: number;
};
export type PaginateServicesResults = {
data: any[];
page: number;
pages: number;
};
export type SetServiceBannedParams = {
id: string;
banned: boolean;
};
+54
View File
@@ -0,0 +1,54 @@
export type SysAdminPaginateUsersParams = {
page: number;
limit: number;
name?: string;
lastName?: string;
email?: string;
isVerified?: boolean;
createdFrom?: string;
createdTo?: string;
sortBy?: "name" | "createdAt";
sortOrder?: "asc" | "desc";
};
export type PaginateUsersResults = {
data: any[];
page: number;
pages: number;
};
export type SysAdminUpdateProfileParams = {
userId: string;
firstName?: string;
lastName?: string;
street?: string;
streetNumber?: string;
builingFloor?: string;
buildingApartament?: string;
block?: string;
city?: string;
state?: string;
country?: string;
zipCode?: string;
phoneCountryCode?: string;
phoneAreaCode?: string;
phoneNumber?: string;
};
export type SysAdminSetVerifiedParams = {
userId: string;
isVerified: boolean;
};
export type SysAdminDeleteUserParams = {
userId: string;
};
export type SysAdminOrganizationsStatusParams = {
userId: string;
};
export type SysAdminUserOrganizationsResult = {
clientIn: { companyId: string; companyName: string }[];
collaboratorIn: { companyId: string; companyName: string }[];
};
+38
View File
@@ -0,0 +1,38 @@
import { IPayload } from "./Payload.Model";
export type FindWapServerParams = {
id?: string;
name?: string;
description?: string;
countBots?: number;
maxBots?: number;
active?: boolean;
countBotsFrom?: number;
countBotsTo?: number;
};
export interface IWapServer {
id?: string;
name?: string;
description?: string;
ipv4: string;
ipv6: string;
countBots: number;
maxBots: number;
active: boolean;
}
export type PaginateWapServerParams = FindWapServerParams & {
page: number;
limit: number;
};
export type PaginateWapServerResults = {
data: IWapServer[];
page: number;
pages: number;
};
export type SysAdminGetWapServerParams = PaginateWapServerParams & {
payload: IPayload;
};