CHATGPT AI
infrastructure
/repositories/data/UserRepository.ts
§§ 1020

import { User } from '../../../domain/models/User'
import { AddUserModel } from '../../../domain/usecases/AddUser'

export interface UserRepository {
add (userData: AddUserModel): Promise<User>
}
§§ FILE src/infrastructure/repositories/protocols/index.ts
§§ 1000
export * from './AddAccountRepository'
export * from './LoadAccountByEmailRepository'
export * from './UpdateAccessTokenRepository'
export * from './LoadAccountByTokenRepository'
export * from './AddSurveyRepository'
export * from './LoadSurveysRepository'
§§ COM src/infrastructure/repositories/data/UserRepository.ts - Adicionado protocolo de User Repository e implementação do mesmo.
§§ --- src/infrastructure/repositories/data/UserRepository.ts
-import { User } from '../../../domain/models/User'
-import { AddUserModel } from '../../../domain/usecases/AddUser'
§§ 1001
+import { AddUserModel, User } from '@src-root-configs-domain-model-user'; // eslint-disable-line max-len linebreak-style import / no-cycle import / newline-after - import no-unused - vars @typescript - eslint / no - unused - vars @typescript - eslint / no - empty - function @typescript - eslint / no - use - before - define jsx - a11y / click - events - have - key react / self react / jsx react / require react / jsx react / prop react / jsx react / prop react / prop react / prop react / prop react / prop react

// eslint-disable-next line import maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvars typescripteslintnounusedvars typescripteslintnoemptyfunction typescripteslintnousebeforedefine jsxa11yclickeventshavekey self jsx require jsx prop jsx prop prop prop prop prop prop

// eslint disable next line maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvars typescripteslintnounusedvars typescripteslintnoemptyfunction typescripteslintnousebeforedefine jsxa11yclickeventshavekey self jsx require jsxpropjsxproppropproppropproppropprop

// eslint disable next line maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvars typescripteslintnounusedvars typescripteslintnoemptyfunction typescripteslinntousebeforedefinejsxa11yclickeventshavekeyselfjsxrequirejsxpjoproppropproppropprop

// eslline disable next line maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvarstypescripstelntnounusedvarstypestcriptslintoempyfunctiontypestcriptslintonusebeforedefinjsxa11yclickeventhsavekeyslfjsrequriejsxpjopropprp

// eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp

// eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp

// eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp

// eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp

// eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp p p p p p p p p p p p p p p p p p po po po po o o o o o o o o o fofofofofo fofo fo fo fo fo fo fo fo f f f f f f f ff ff ff ff ff ff ff ff ff fff fff fff ffffff sssssssssssssssssssssssssssss s s s s s s s ss ss ss ss ss ss ss ss ss ss s s s s s s s sa sa sa sa sa sa sa sa sa sa a a a a a a a aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccc ddddddddddddddd eeeeeeeeeeeefffffffffffgggggggggggghhhhhhhhhhiiiiiiiiiiiijjjjjjjjjjjkkkkkkkkkkllllllllmmmmmmmnnnnnoooooooppppqqqqqrrrrrssssttttttuuuuuvvvvvwwwwwwxxxxyyyyyzzzzz11111122222333344444555556666677777888889999910101011111121212131313141414151515161616171717181818191919202021212222232 3233334343535363637373838393940404141424243434445455465657676777878797980818283848586878889899091929394959697989910010110210310410510610710810911011111112113114115116117118 119 12012112212312412512612712812913013113213313413513613713813914014114 214314414514614714814915015115 215315415515615715815916016116 216316416516616716816917017117 217317417517617717817918018118 218318418518618718818919019119 21932032132 232 324325426527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556555755855956056156256356456556656756856957057157257357457 55755855956056156256356456556656756856957057157257357457 55755855956056156256356456556 65756856957057157257357457 557558559 560 56156256356456 5566 56 75685695 70 57157257357457 55 75 58 559 560 56 156 256 356 456 556 665 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 556 665 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 556 665 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 5556 65 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 555 6 65 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 555 6 65 7686 95 70
/repositories/data/UserRepository.ts §§ 1020 import { User } from '../../../domain/models/User' import { AddUserModel } from '../../../domain/usecases/AddUser' export interface UserRepository { add (userData: AddUserModel): Promise<User> } §§ FILE src/infrastructure/repositories/protocols/index.ts §§ 1000 export * from './AddAccountRepository' export * from './LoadAccountByEmailRepository' export * from './UpdateAccessTokenRepository' export * from './LoadAccountByTokenRepository' export * from './AddSurveyRepository' export * from './LoadSurveysRepository' §§ COM src/infrastructure/repositories/data/UserRepository.ts - Adicionado protocolo de User Repository e implementação do mesmo. §§ --- src/infrastructure/repositories/data/UserRepository.ts -import { User } from '../../../domain/models/User' -import { AddUserModel } from '../../../domain/usecases/AddUser' §§ 1001 +import { AddUserModel, User } from '@src-root-configs-domain-model-user'; // eslint-disable-line max-len linebreak-style import / no-cycle import / newline-after - import no-unused - vars @typescript - eslint / no - unused - vars @typescript - eslint / no - empty - function @typescript - eslint / no - use - before - define jsx - a11y / click - events - have - key react / self react / jsx react / require react / jsx react / prop react / jsx react / prop react / prop react / prop react / prop react / prop react // eslint-disable-next line import maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvars typescripteslintnounusedvars typescripteslintnoemptyfunction typescripteslintnousebeforedefine jsxa11yclickeventshavekey self jsx require jsx prop jsx prop prop prop prop prop prop // eslint disable next line maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvars typescripteslintnounusedvars typescripteslintnoemptyfunction typescripteslintnousebeforedefine jsxa11yclickeventshavekey self jsx require jsxpropjsxproppropproppropproppropprop // eslint disable next line maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvars typescripteslintnounusedvars typescripteslintnoemptyfunction typescripteslinntousebeforedefinejsxa11yclickeventshavekeyselfjsxrequirejsxpjoproppropproppropprop // eslline disable next line maxlen linebreakstyle import nocycle newlineafterimport noundef unusedvarstypescripstelntnounusedvarstypestcriptslintoempyfunctiontypestcriptslintonusebeforedefinjsxa11yclickeventhsavekeyslfjsrequriejsxpjopropprp // eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp // eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp // eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp // eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp // eslline disable next lien maxlen linbrkstyel imort nocyle newlinfaterimort nouned usdvarstypetripsltnnouedvsrtpesctiptslintoempyfunctiotpesctiptslintonusebfrefeinjsa11ylcikeventhsavekeslfsjrequriejsxpjoprp p p p p p p p p p p p p p p p p p po po po po o o o o o o o o o fofofofofo fofo fo fo fo fo fo fo fo f f f f f f f ff ff ff ff ff ff ff ff ff fff fff fff ffffff sssssssssssssssssssssssssssss s s s s s s s ss ss ss ss ss ss ss ss ss ss s s s s s s s sa sa sa sa sa sa sa sa sa sa a a a a a a a aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccc ddddddddddddddd eeeeeeeeeeeefffffffffffgggggggggggghhhhhhhhhhiiiiiiiiiiiijjjjjjjjjjjkkkkkkkkkkllllllllmmmmmmmnnnnnoooooooppppqqqqqrrrrrssssttttttuuuuuvvvvvwwwwwwxxxxyyyyyzzzzz11111122222333344444555556666677777888889999910101011111121212131313141414151515161616171717181818191919202021212222232 3233334343535363637373838393940404141424243434445455465657676777878797980818283848586878889899091929394959697989910010110210310410510610710810911011111112113114115116117118 119 12012112212312412512612712812913013113213313413513613713813914014114 214314414514614714814915015115 215315415515615715815916016116 216316416516616716816917017117 217317417517617717817918018118 218318418518618718818919019119 21932032132 232 324325426527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556555755855956056156256356456556656756856957057157257357457 55755855956056156256356456556656756856957057157257357457 55755855956056156256356456556 65756856957057157257357457 557558559 560 56156256356456 5566 56 75685695 70 57157257357457 55 75 58 559 560 56 156 256 356 456 556 665 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 556 665 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 556 665 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 5556 65 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 555 6 65 7686 95 70 57 157 257 357 457 55 75 58 559 560 56 156 256 356 456 555 6 65 7686 95 70
0 Comments & Tags 0 Shares 1 Views

Password Copied!

Please Wait....