Skip to content

Commit

Permalink
Merge pull request #80 from sisgha/dev-gabriel
Browse files Browse the repository at this point in the history
refactor: arquivo.operations from @sisgea/spec
  • Loading branch information
guesant authored Apr 30, 2024
2 parents d13317d + bb04d00 commit a501981
Show file tree
Hide file tree
Showing 118 changed files with 491 additions and 255 deletions.
237 changes: 233 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@nestjs/schedule": "^4.0.2",
"@nestjs/swagger": "^7.3.1",
"@nestjs/throttler": "^5.1.2",
"@sisgea/spec": "^1.1.0-development.36",
"@sisgea/spec": "^1.1.0-development.38",
"compression": "^1.7.4",
"fs-jetpack": "^5.1.0",
"graphql": "^16.8.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Controller, Delete, Get, Patch, Post } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { Paginate, PaginateQuery } from 'nestjs-paginate';
import * as Dto from '../../(spec)';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import {
ContextoDeAcessoHttp,
DtoOperationCreate,
Expand Down
2 changes: 1 addition & 1 deletion plop/generators/module-core/hbs/core-module/service.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { map, pick } from 'lodash';
import { paginate } from 'nestjs-paginate';
import { SelectQueryBuilder } from 'typeorm';
import * as Dtos from '../../(spec)';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import { getPaginateQueryFromSearchInput } from '../../../../infrastructure';
import { DatabaseContextService } from '../../../../infrastructure/integrate-database/database-context/database-context.service';
import { {{ c_pascal moduleName }}Entity } from '../../../../infrastructure/integrate-database/typeorm/entities/{{ c_kebab moduleNameParent }}/{{ c_snake moduleName }}.entity';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Controller, Delete, Get, Param, ParseUUIDPipe, Patch, Post, Put, Upload
import { ApiTags } from '@nestjs/swagger';
import * as Dto from '@sisgea/spec';
import { Paginate, PaginateQuery } from 'nestjs-paginate';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import {
ContextoDeAcessoHttp,
DtoOperationCreate,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Resolver } from '@nestjs/graphql';
import * as Dto from '@sisgea/spec';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import { ContextoDeAcessoGraphQl, DtoOperationGqlMutation, DtoOperationGqlQuery } from '../../../../infrastructure';
import { GqlDtoInput } from '../../../../infrastructure/api-documentate/GqlDtoInput';
import { AmbienteService } from './ambiente.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppResource, AppResourceView } from 'application/utils/qbEfficientLoad'
import { map, pick } from 'lodash';
import { FilterOperator, paginate } from 'nestjs-paginate';
import { SelectQueryBuilder } from 'typeorm';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import { getPaginateQueryFromSearchInput, getPaginatedResultDto } from '../../../../infrastructure';
import { DatabaseContextService } from '../../../../infrastructure/integrate-database/database-context/database-context.service';
import { AmbienteEntity } from '../../../../infrastructure/integrate-database/typeorm/entities/ambientes/ambiente.entity';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as Spec from '@sisgea/spec';
import { createEntityDtoClass } from 'infrastructure/utils/createDtoClass';
import * as yup from 'yup';
import { ValidationContractObjectUuidBase, createDtoOperationOptions, createValidationContract } from '../../../../../infrastructure';
import { AmbienteFindOneResultDto } from './ambiente-find-one.operation';
import { AmbienteInputDtoValidationContract } from './ambiente-input.operation';
import { AmbienteDto } from './ambiente.dto';
import { createEntityDtoClass } from '../../../../../infrastructure/utils/createDtoClass';

// ======================================================
export const AmbienteCreateDto = createEntityDtoClass(Spec.AmbienteInputDeclaration, 'input');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Spec from '@sisgea/spec';
import { createEntityDtoClass } from 'infrastructure/utils/createDtoClass';
import * as yup from 'yup';
import { ValidationContractUuid, createDtoOperationOptions, createValidationContract, getSchemaField } from '../../../../../infrastructure';
import { createEntityDtoClass } from '../../../../../infrastructure/utils/createDtoClass';
import { AmbienteDto, AmbienteDtoValidationContract } from './ambiente.dto';

// ======================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const AmbienteUpdateInputDtoValidationContract = createValidationContract

// ======================================================
import * as Spec from '@sisgea/spec';
import { createEntityDtoClass } from 'infrastructure/utils/createDtoClass';
import { createEntityDtoClass } from '../../../../../infrastructure/utils/createDtoClass';
// ======================================================
export const AmbienteUpdateInputDto = createEntityDtoClass(Spec.AmbienteUpdateDeclaration, 'input');
// ======================================================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Int } from '@nestjs/graphql';
import * as Spec from '@sisgea/spec';
import { createEntityDtoClass } from 'infrastructure/utils/createDtoClass';
import * as yup from 'yup';
import {
CommonPropertyUuid,
Expand All @@ -12,6 +11,7 @@ import {
createDtoPropertyMap,
createValidationContract,
} from '../../../../../infrastructure';
import { createEntityDtoClass } from '../../../../../infrastructure/utils/createDtoClass';
import { ImagemDto, ImagemFindOneResultDto } from '../../../base/imagem/imagem.dtos';
import { BlocoDto, BlocoFindOneResultDto } from '../../bloco/dtos';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Controller, Delete, Get, Param, ParseUUIDPipe, Patch, Post, Put, Upload
import { ApiTags } from '@nestjs/swagger';
import * as Dto from '@sisgea/spec';
import { Paginate, PaginateQuery } from 'nestjs-paginate';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import {
ContextoDeAcessoHttp,
DtoOperationCreate,
Expand Down
2 changes: 1 addition & 1 deletion src/application/business/ambientes/bloco/bloco.resolver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Resolver } from '@nestjs/graphql';
import * as Dto from '@sisgea/spec';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import { ContextoDeAcessoGraphQl, DtoOperationGqlMutation, DtoOperationGqlQuery } from '../../../../infrastructure';
import { GqlDtoInput } from '../../../../infrastructure/api-documentate/GqlDtoInput';
import { BlocoService } from './bloco.service';
Expand Down
2 changes: 1 addition & 1 deletion src/application/business/ambientes/bloco/bloco.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppResource, AppResourceView } from 'application/utils/qbEfficientLoad'
import { map, pick } from 'lodash';
import { FilterOperator, paginate } from 'nestjs-paginate';
import { SelectQueryBuilder } from 'typeorm';
import { IContextoDeAcesso } from '../../../../domain';
import type { IContextoDeAcesso } from '../../../../domain';
import { getPaginateQueryFromSearchInput, getPaginatedResultDto } from '../../../../infrastructure';
import { DatabaseContextService } from '../../../../infrastructure/integrate-database/database-context/database-context.service';
import { BlocoEntity } from '../../../../infrastructure/integrate-database/typeorm/entities/ambientes/bloco.entity';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Spec from '@sisgea/spec';
import { createEntityDtoClass } from 'infrastructure/utils/createDtoClass';
import * as yup from 'yup';
import { ValidationContractObjectUuidBase, createDtoOperationOptions, createValidationContract } from '../../../../../infrastructure';
import { createEntityDtoClass } from '../../../../../infrastructure/utils/createDtoClass';
import { BlocoFindOneResultDto } from './bloco-find-one.operation';
import { BlocoInputDtoValidationContract } from './bloco-input.dto';
import { BlocoDto } from './bloco.dto';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Spec from '@sisgea/spec';
import { createEntityDtoClass } from 'infrastructure/utils/createDtoClass';
import * as yup from 'yup';
import { ValidationContractUuid, createDtoOperationOptions, createValidationContract, getSchemaField } from '../../../../../infrastructure';
import { createEntityDtoClass } from '../../../../../infrastructure/utils/createDtoClass';
import { BlocoDto, BlocoDtoValidationContract } from './bloco.dto';

// ======================================================
Expand Down
Loading

0 comments on commit a501981

Please sign in to comment.