Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
484 changes: 202 additions & 282 deletions .pnp.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarn/bin/yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
set -eu

ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)
YARN_PATH=$(awk '/^yarnPath:/ { print $2; exit }' "$ROOT_DIR/.yarnrc.yml")

exec "$ROOT_DIR/$YARN_PATH" "$@"
1,828 changes: 915 additions & 913 deletions .yarn/releases/yarn.mjs → .yarn/releases/yarn-remote.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,4 @@ packageExtensions:
dependencies:
'@types/node': '*'

yarnPath: .yarn/releases/yarn.mjs
yarnPath: .yarn/releases/yarn-remote.mjs
1 change: 1 addition & 0 deletions catalog/application/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@catalog/application",
"version": "0.1.1",
"license": "BSD-3-Clause",
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@catalog/domain": "0.1.1",
Expand Down
2 changes: 1 addition & 1 deletion catalog/application/src/commands/CreateCategoryCommand.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IsUUID } from 'class-validator'
import { MinLength } from 'class-validator'
import uuid from 'uuid/v4'
import uuid from 'uuid/v4.js'

export class CreateCategoryCommand {
id: string = uuid()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MinLength } from 'class-validator'
import uuid from 'uuid/v4'
import uuid from 'uuid/v4.js'

export class CreateCategoryGroupCommand {
id: string = uuid()
Expand Down
12 changes: 6 additions & 6 deletions catalog/application/src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './CreateCategoryGroupCommand'
export * from './UpdateCategoryGroupCommand'
export * from './DeleteCategoryGroupCommand'
export * from './CreateCategoryCommand'
export * from './UpdateCategoryCommand'
export * from './DeleteCategoryCommand'
export * from './CreateCategoryGroupCommand.js'
export * from './UpdateCategoryGroupCommand.js'
export * from './DeleteCategoryGroupCommand.js'
export * from './CreateCategoryCommand.js'
export * from './UpdateCategoryCommand.js'
export * from './DeleteCategoryCommand.js'
6 changes: 3 additions & 3 deletions catalog/application/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './commands'
export * from './services'
export * from './module'
export * from './commands/index.js'
export * from './services/index.js'
export * from './module.js'
8 changes: 4 additions & 4 deletions catalog/application/src/module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Module } from '@nestjs/common'

import { CategoryGroupQueriesService } from './services'
import { CategoryGroupService } from './services'
import { CategoryQueriesService } from './services'
import { CategoryService } from './services'
import { CategoryGroupQueriesService } from './services/index.js'
import { CategoryGroupService } from './services/index.js'
import { CategoryQueriesService } from './services/index.js'
import { CategoryService } from './services/index.js'

@Module({
providers: [
Expand Down
6 changes: 3 additions & 3 deletions catalog/application/src/services/CategoryGroupService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Injectable } from '@nestjs/common'
import { CategoryGroup } from '@catalog/domain'
import { CategoryGroupEntityRepository } from '@catalog/persistence'

import { CreateCategoryGroupCommand } from '../commands'
import { DeleteCategoryGroupCommand } from '../commands'
import { UpdateCategoryGroupCommand } from '../commands'
import { CreateCategoryGroupCommand } from '../commands/index.js'
import { DeleteCategoryGroupCommand } from '../commands/index.js'
import { UpdateCategoryGroupCommand } from '../commands/index.js'

@Injectable()
export class CategoryGroupService {
Expand Down
6 changes: 3 additions & 3 deletions catalog/application/src/services/CategoryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Injectable } from '@nestjs/common'
import { Category } from '@catalog/domain'
import { CategoryEntityRepository } from '@catalog/persistence'

import { CreateCategoryCommand } from '../commands'
import { DeleteCategoryCommand } from '../commands'
import { UpdateCategoryCommand } from '../commands'
import { CreateCategoryCommand } from '../commands/index.js'
import { DeleteCategoryCommand } from '../commands/index.js'
import { UpdateCategoryCommand } from '../commands/index.js'

@Injectable()
export class CategoryService {
Expand Down
8 changes: 4 additions & 4 deletions catalog/application/src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './CategoryGroupQueriesService'
export * from './CategoryGroupService'
export * from './CategoryQueriesService'
export * from './CategoryService'
export * from './CategoryGroupQueriesService.js'
export * from './CategoryGroupService.js'
export * from './CategoryQueriesService.js'
export * from './CategoryService.js'
1 change: 1 addition & 0 deletions catalog/domain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@catalog/domain",
"version": "0.1.1",
"license": "BSD-3-Clause",
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@nestjs/common": "8.4.2",
Expand Down
12 changes: 6 additions & 6 deletions catalog/domain/src/events/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './CategoryGroupCreated'
export * from './CategoryGroupUpdated'
export * from './CategoryGroupDeleted'
export * from './CategoryCreated'
export * from './CategoryUpdated'
export * from './CategoryDeleted'
export * from './CategoryGroupCreated.js'
export * from './CategoryGroupUpdated.js'
export * from './CategoryGroupDeleted.js'
export * from './CategoryCreated.js'
export * from './CategoryUpdated.js'
export * from './CategoryDeleted.js'
4 changes: 2 additions & 2 deletions catalog/domain/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './events'
export * from './model'
export * from './events/index.js'
export * from './model/index.js'
6 changes: 3 additions & 3 deletions catalog/domain/src/model/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { AggregateRoot } from '@node-ts/ddd'
/* eslint-disable @typescript-eslint/no-empty-function */
import { AggregateRootProperties } from '@node-ts/ddd-types'

import { CategoryCreated } from '../events'
import { CategoryDeleted } from '../events'
import { CategoryUpdated } from '../events'
import { CategoryCreated } from '../events/index.js'
import { CategoryDeleted } from '../events/index.js'
import { CategoryUpdated } from '../events/index.js'

export interface CategoryProperties extends AggregateRootProperties {
groupId: string
Expand Down
6 changes: 3 additions & 3 deletions catalog/domain/src/model/CategoryGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { AggregateRoot } from '@node-ts/ddd'
/* eslint-disable @typescript-eslint/no-empty-function */
import { AggregateRootProperties } from '@node-ts/ddd-types'

import { CategoryGroupCreated } from '../events'
import { CategoryGroupDeleted } from '../events'
import { CategoryGroupUpdated } from '../events'
import { CategoryGroupCreated } from '../events/index.js'
import { CategoryGroupDeleted } from '../events/index.js'
import { CategoryGroupUpdated } from '../events/index.js'

export interface CategoryGroupProperties extends AggregateRootProperties {
name: string
Expand Down
4 changes: 2 additions & 2 deletions catalog/domain/src/model/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './CategoryGroup'
export * from './Category'
export * from './CategoryGroup.js'
export * from './Category.js'
1 change: 1 addition & 0 deletions catalog/persistence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@catalog/persistence",
"version": "0.1.1",
"license": "BSD-3-Clause",
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@catalog/domain": "0.1.1",
Expand Down
4 changes: 2 additions & 2 deletions catalog/persistence/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TypeOrmModuleOptions } from '@nestjs/typeorm'

import * as entities from './entities'
import * as migrations from './migrations'
import * as entities from './entities/index.js'
import * as migrations from './migrations/index.js'

const config: TypeOrmModuleOptions = {
type: 'postgres',
Expand Down
2 changes: 1 addition & 1 deletion catalog/persistence/src/entities/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ManyToOne } from 'typeorm'
import { PrimaryColumn } from 'typeorm'
import { UpdateDateColumn } from 'typeorm'

import { CategoryGroup } from './CategoryGroup'
import { CategoryGroup } from './CategoryGroup.js'

@Entity()
export class Category {
Expand Down
2 changes: 1 addition & 1 deletion catalog/persistence/src/entities/CategoryGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { OneToMany } from 'typeorm'
import { PrimaryColumn } from 'typeorm'
import { UpdateDateColumn } from 'typeorm'

import { Category } from './Category'
import { Category } from './Category.js'

@Entity()
export class CategoryGroup {
Expand Down
4 changes: 2 additions & 2 deletions catalog/persistence/src/entities/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './CategoryGroup'
export * from './Category'
export * from './CategoryGroup.js'
export * from './Category.js'
6 changes: 3 additions & 3 deletions catalog/persistence/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './repositories'
export * from './entities'
export * from './module'
export * from './repositories/index.js'
export * from './entities/index.js'
export * from './module.js'
8 changes: 4 additions & 4 deletions catalog/persistence/src/migrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './1564387862723-CreateCategoriesAndGroups'
export * from './1564392658148-AddCategorySeed'
export * from './1564569981769-CategoryGroupChangePrimaryColumn'
export * from './1567160603050-AddVersions'
export * from './1564387862723-CreateCategoriesAndGroups.js'
export * from './1564392658148-AddCategorySeed.js'
export * from './1564569981769-CategoryGroupChangePrimaryColumn.js'
export * from './1567160603050-AddVersions.js'
10 changes: 5 additions & 5 deletions catalog/persistence/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { BusModule } from '@monstrs/nestjs-bus'
import { LoggerModule } from '@monstrs/nestjs-logger'
import { TypeOrmModule } from '@nestjs/typeorm'

import { Category } from './entities'
import { CategoryGroup } from './entities'
import { CategoryEntityRepository } from './repositories'
import { CategoryGroupEntityRepository } from './repositories'
import config from './config'
import { Category } from './entities/index.js'
import { CategoryGroup } from './entities/index.js'
import { CategoryEntityRepository } from './repositories/index.js'
import { CategoryGroupEntityRepository } from './repositories/index.js'
import config from './config.js'

const feature = TypeOrmModule.forFeature([CategoryGroup, Category])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Bus } from '@monstrs/nestjs-bus'
import { Logger } from '@monstrs/nestjs-logger'
import { WriteRepository } from '@node-ts/ddd'

import { Category } from '../entities'
import { Category } from '../entities/index.js'

@Injectable()
// @ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Bus } from '@monstrs/nestjs-bus'
import { Logger } from '@monstrs/nestjs-logger'
import { WriteRepository } from '@node-ts/ddd'

import { CategoryGroup } from '../entities'
import { CategoryGroup } from '../entities/index.js'

@Injectable()
// @ts-ignore
Expand Down
4 changes: 2 additions & 2 deletions catalog/persistence/src/repositories/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './CategoryGroupEntityRepository'
export * from './CategoryEntityRepository'
export * from './CategoryGroupEntityRepository.js'
export * from './CategoryEntityRepository.js'
2 changes: 1 addition & 1 deletion catalog/persistence/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@monstrs/tsconfig/tsconfig.service.json"
"extends": "../../tsconfig.json"
}
5 changes: 3 additions & 2 deletions catalog/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "@catalog/service",
"version": "0.1.1",
"license": "BSD-3-Clause",
"type": "module",
"main": "src/index.ts",
"scripts": {
"build": "yarn service build",
"dev": "yarn service dev",
"build": "$PROJECT_CWD/.yarn/bin/yarn service build",
"dev": "$PROJECT_CWD/.yarn/bin/yarn service dev",
"start": "node dist/index.js"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions catalog/service/src/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './CategoryGroupQueriesController'
export * from './CategoryGroupController'
export * from './CategoryController'
export * from './CategoryQueriesController'
export * from './CategoryGroupQueriesController.js'
export * from './CategoryGroupController.js'
export * from './CategoryController.js'
export * from './CategoryQueriesController.js'
2 changes: 1 addition & 1 deletion catalog/service/src/health/health.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Module } from '@nestjs/common'
import { BusHealthModule } from '@monstrs/nestjs-bus-health'
import { TerminusModule } from '@nestjs/terminus'

import { TerminusOptionsService } from './terminus-options.service'
import { TerminusOptionsService } from './terminus-options.service.js'

@Module({
imports: [TerminusModule, BusHealthModule],
Expand Down
4 changes: 2 additions & 2 deletions catalog/service/src/health/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './terminus-options.service'
export * from './health.module'
export * from './terminus-options.service.js'
export * from './health.module.js'
2 changes: 1 addition & 1 deletion catalog/service/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NestFactory } from '@nestjs/core'
import { serverOptions } from '@protos/catalog'

import { ServiceModule } from './module'
import { ServiceModule } from './module.js'

declare const module: any

Expand Down
8 changes: 4 additions & 4 deletions catalog/service/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Module } from '@nestjs/common'
import { ApplicationModule } from '@catalog/application'
import { PersistenceModule } from '@catalog/persistence'

import { CategoryController } from './controllers'
import { CategoryGroupController } from './controllers'
import { CategoryGroupQueriesController } from './controllers'
import { CategoryQueriesController } from './controllers'
import { CategoryController } from './controllers/index.js'
import { CategoryGroupController } from './controllers/index.js'
import { CategoryGroupQueriesController } from './controllers/index.js'
import { CategoryQueriesController } from './controllers/index.js'

@Module({
imports: [PersistenceModule, ApplicationModule],
Expand Down
1 change: 1 addition & 0 deletions collaboration/application/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@collaboration/application",
"version": "0.0.1",
"license": "BSD-3-Clause",
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@collaboration/domain": "0.0.1",
Expand Down
26 changes: 13 additions & 13 deletions collaboration/application/src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export * from './UpdateSpecialistCommand'
export * from './CreateProjectCommand'
export * from './UpdateProjectCommand'
export * from './AddProjectReplyCommand'
export * from './AddReplyMessageCommand'
export * from './ChangeReplyStatusCommand'
export * from './ChooseSpecialistCommand'
export * from './PublishProjectCommand'
export * from './CompleteProjectCommand'
export * from './ChangeAccountTypeCommand'
export * from './AddDiscussionMessageCommand'
export * from './ConfirmProjectReplyCommand'
export * from './RejectProjectReplyCommand'
export * from './UpdateSpecialistCommand.js'
export * from './CreateProjectCommand.js'
export * from './UpdateProjectCommand.js'
export * from './AddProjectReplyCommand.js'
export * from './AddReplyMessageCommand.js'
export * from './ChangeReplyStatusCommand.js'
export * from './ChooseSpecialistCommand.js'
export * from './PublishProjectCommand.js'
export * from './CompleteProjectCommand.js'
export * from './ChangeAccountTypeCommand.js'
export * from './AddDiscussionMessageCommand.js'
export * from './ConfirmProjectReplyCommand.js'
export * from './RejectProjectReplyCommand.js'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReviewCreated } from '@collaboration/domain'
import { SpecialistEntityRepository } from '@collaboration/persistence'
import { Handler } from '@node-ts/bus-core'

import { ReviewQueriesService } from '../services'
import { ReviewQueriesService } from '../services/index.js'

export class RecalculateRatingHandler implements Handler<ReviewCreated> {
constructor(
Expand Down
6 changes: 3 additions & 3 deletions collaboration/application/src/handlers/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './RecalculateRatingHandler'
export * from './ProjectReplyCountHandler'
export * from './SpecialistReviewCreatedHandler'
export * from './RecalculateRatingHandler.js'
export * from './ProjectReplyCountHandler.js'
export * from './SpecialistReviewCreatedHandler.js'
10 changes: 5 additions & 5 deletions collaboration/application/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './handlers'
export * from './commands'
export * from './services'
export * from './module'
export * from './interfaces'
export * from './handlers/index.js'
export * from './commands/index.js'
export * from './services/index.js'
export * from './module.js'
export * from './interfaces/index.js'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PageInfo } from './page-info.interface'
import { PageInfo } from './page-info.interface.js'

export interface FindAllResponse<T> {
rows: T[]
Expand Down
4 changes: 2 additions & 2 deletions collaboration/application/src/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './page-info.interface'
export * from './find-all-response.interface'
export * from './page-info.interface.js'
export * from './find-all-response.interface.js'
Loading
Loading