'use strict';
import { friendProps } from '../../../level2/common/dev/props/friend-props.js';
import { httpStatusCodes } from '../../../fd-toolbox/constants/http-status-codes.js';
import { convertFromCamelToPascalCase } from '../../../fd-toolbox/strings/casing-converter.js';
import { crudResultTypes } from '../../../fd-toolbox/types/crud/crud-result-type.js';
import { createInvalidValidationResult } from '../../../fd-toolbox/types/crud/crud-results.js';
import { createValidationDetailResult } from '../../../level2/meta/server/validations/meta-validations.js';
import { metaValidationMessages } from '../../../level2/meta/server/constants/meta-validation-messages.js';

var __defProp=Object['defineProperty'],__name=(_0x3dc758,_0x2b5701)=>__defProp(_0x3dc758,'name',{'value':_0x2b5701,'configurable':!![]});function getUpdateResultForEmptyFriendWithIdSpecified(){const _0x49d8b2=createValidationDetailResult(metaValidationMessages['requiredStringFieldCantBeEmpty']['replace']('{0}',friendProps['name']),metaValidationMessages['requiredStringFieldCantBeEmptyUserFriendly'],friendProps['name'],httpStatusCodes['internalServerError']),_0x596d9e=createValidationDetailResult(metaValidationMessages['requiredFieldCantBeDefault']['replace']('{0}',friendProps['personId']),metaValidationMessages['requiredFieldCantBeDefaultUserFriendly']['replace']('{0}',friendProps['personId']),friendProps['personId'],httpStatusCodes['internalServerError']),_0x437c01=createValidationDetailResult(metaValidationMessages['invalidValue']['replace']('{0}',friendProps['personId']),metaValidationMessages['invalidUserFriendly']['replace']('{0}',convertFromCamelToPascalCase(friendProps['person'])),friendProps['personId'],httpStatusCodes['internalServerError']),_0x28a4d4=[_0x49d8b2,_0x596d9e,_0x437c01];return getInvalidCrudServiceResult(_0x28a4d4);}__name(getUpdateResultForEmptyFriendWithIdSpecified,'getUpdateResultForEmptyFriendWithIdSpecified');function getInvalidCrudServiceResult(_0x198322){const _0x169d7c={'type':crudResultTypes['notValid'],'validationResult':createInvalidValidationResult(_0x198322)};return _0x169d7c;}__name(getInvalidCrudServiceResult,'getInvalidCrudServiceResult');

export { getInvalidCrudServiceResult, getUpdateResultForEmptyFriendWithIdSpecified };
