import { EntityFindAllPublicResponse , EntityFindOnePublicResponse , } from '@dark-rush-photography/shared/types' ; Cypress . Commands . add ( 'findAllPublicEntities' , ( entityType ) : Cypress . Chainable < Cypress . Response < EntityFindAllPublicResponse > > => cy . request ( { method : 'GET' , url : `/api/v1/entities/entity-type/${ entityType }` , failOnStatusCode : false , } ) ) ; Cypress . Commands . add ( 'findOnePublicEntities' , ( entityId ) : Cypress . Chainable < Cypress . Response < EntityFindOnePublicResponse > > => cy . request ( { method : 'GET' , url : `/api/v1/entities/${ entityId }` , failOnStatusCode : false , } ) ) ;