diff --git a/msw/handlers.ts b/msw/handlers.ts deleted file mode 100644 index 2a23dd0..0000000 --- a/msw/handlers.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { assetsServiceHandlers } from './handlers/AssetsService/handlers.ts' -import { authServiceHandlers } from './handlers/AuthService/handlers.ts' -import { tagsServiceHandlers } from './handlers/TagsService/handlers.ts' -import { usersServiceHandlers } from './handlers/UsersService/handlers.ts' -import { worksServiceHandlers } from './handlers/WorksService/handlers.ts' -export const handlers = [ - ...assetsServiceHandlers, - ...authServiceHandlers, - ...tagsServiceHandlers, - ...usersServiceHandlers, - ...worksServiceHandlers, -] diff --git a/msw/handlers/AssetsService/handlers.ts b/msw/handlers/AssetsService/handlers.ts deleted file mode 100644 index ff04dac..0000000 --- a/msw/handlers/AssetsService/handlers.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable */ -/* This file is generated by protoc-gen-ts-msw-handlers */ -/* Do not edit this file manually */ -import { http, HttpResponse } from 'msw' -const ApiV1AssetsPostHandler = http.post('/api/v1/assets',() => { - return new HttpResponse.json({ - id:'3f9bcb11-5078-4490-a10b-d277f454adcb', - }) -}) -const ApiV1AssetsIdDeleteHandler = http.delete('/api/v1/assets/{id}',() => { - return new HttpResponse.json({ - status:'ok', - }) -}) -export const assetsServiceHandlers = [ - ApiV1AssetsPostHandler, - ApiV1AssetsIdDeleteHandler, -] diff --git a/msw/handlers/AuthService/handlers.ts b/msw/handlers/AuthService/handlers.ts deleted file mode 100644 index 6fefb84..0000000 --- a/msw/handlers/AuthService/handlers.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* eslint-disable */ -/* This file is generated by protoc-gen-ts-msw-handlers */ -/* Do not edit this file manually */ -import { http, HttpResponse } from 'msw' -const ApiV1AuthDiscordCallbackGetHandler = http.get('/api/v1/auth/discord/callback',() => { - return new HttpResponse.json({ - value:'', - }) -}) -const ApiV1AuthTokenPostHandler = http.post('/api/v1/auth/token',() => { - return new HttpResponse.json({ - expired_at:'', - refresh_token:'emoyic', - access_token:'emoyic', - }) -}) -const ApiV1AuthDiscordGetHandler = http.get('/api/v1/auth/discord',() => { - return new HttpResponse.json({ - value:'', - }) -}) -const ApiV1AuthSignUpPostHandler = http.post('/api/v1/auth/sign_up',() => { - return new HttpResponse.json({ - id:'ced8594e-320f-4c52-928f-ccc826895420', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4fc78961-650c-4fe0-aaf2-0c774aa75f38', - github_id:'5215c9bc-1222-4a8c-ad65-0e2b42183276', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -export const authServiceHandlers = [ - ApiV1AuthDiscordCallbackGetHandler, - ApiV1AuthTokenPostHandler, - ApiV1AuthDiscordGetHandler, - ApiV1AuthSignUpPostHandler, -] diff --git a/msw/handlers/TagsService/handlers.ts b/msw/handlers/TagsService/handlers.ts deleted file mode 100644 index eb31418..0000000 --- a/msw/handlers/TagsService/handlers.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* eslint-disable */ -/* This file is generated by protoc-gen-ts-msw-handlers */ -/* Do not edit this file manually */ -import { http, HttpResponse } from 'msw' -const ApiV1TagsGetHandler = http.get('/api/v1/tags',() => { - return new HttpResponse.json({ - tags:[ - { - id:'9ec065d7-ab2f-451e-9b21-39e899ea77aa', - name:'Heloise Predovic', - color:'#94088E', - }, - { - id:'e178aeba-27bd-4a24-ae7c-8ebb1e1f3f35', - name:'Heloise Predovic', - color:'#94088E', - }, - { - id:'2d06ec0b-2f3e-4b7a-8450-79115a1fec25', - name:'Heloise Predovic', - color:'#94088E', - }, - { - id:'66eff262-3d7d-4a08-aeea-e0e346f08833', - name:'Heloise Predovic', - color:'#94088E', - }, - ], - }) -}) -const ApiV1TagsPostHandler = http.post('/api/v1/tags',() => { - return new HttpResponse.json({ - id:'fd116a3e-e828-4134-89b1-de817a3ed2ee', - name:'Heloise Predovic', - color:'#94088E', - }) -}) -const ApiV1TagsTagIdGetHandler = http.get('/api/v1/tags/{tag_id}',() => { - return new HttpResponse.json({ - id:'92799828-4f9a-4f98-8221-bb51f8c95649', - name:'Heloise Predovic', - color:'#94088E', - }) -}) -const ApiV1TagsTagIdPutHandler = http.put('/api/v1/tags/{tag_id}',() => { - return new HttpResponse.json({ - id:'cd5c98b7-2e14-4c53-b7f9-ab2537affdd4', - name:'Heloise Predovic', - color:'#94088E', - }) -}) -const ApiV1TagsTagIdDeleteHandler = http.delete('/api/v1/tags/{tag_id}',() => { - return new HttpResponse.json({ - message:'', - }) -}) -export const tagsServiceHandlers = [ - ApiV1TagsGetHandler, - ApiV1TagsPostHandler, - ApiV1TagsTagIdGetHandler, - ApiV1TagsTagIdPutHandler, - ApiV1TagsTagIdDeleteHandler, -] diff --git a/msw/handlers/UsersService/handlers.ts b/msw/handlers/UsersService/handlers.ts deleted file mode 100644 index dd63b57..0000000 --- a/msw/handlers/UsersService/handlers.ts +++ /dev/null @@ -1,595 +0,0 @@ -/* eslint-disable */ -/* This file is generated by protoc-gen-ts-msw-handlers */ -/* Do not edit this file manually */ -import { http, HttpResponse } from 'msw' -const ApiV1UsersMeGetHandler = http.get('/api/v1/users/@me',() => { - return new HttpResponse.json({ - id:'6d38017b-2ccb-435c-aac4-a99e095c64d3', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'fdf8723b-c5a3-465d-b7fc-9b09c1257013', - github_id:'a17472c0-4d8e-4f0a-b72d-8c223035ff59', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1UsersMePutHandler = http.put('/api/v1/users/@me',() => { - return new HttpResponse.json({ - id:'80b1367b-37b8-4bad-99be-ed7bfc3d36d2', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'e1f235a4-bbf1-4cc9-a146-7bd9c4c19e95', - github_id:'c93f1b4a-40e9-4fdb-9fae-e945361afe02', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1UsersGetHandler = http.get('/api/v1/users',() => { - return new HttpResponse.json({ - users:[ - ], - }) -}) -const ApiV1UsersUserIdGetHandler = http.get('/api/v1/users/{user_id}',() => { - return new HttpResponse.json({ - id:'672786bf-7bda-4e34-aaca-022043446448', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'69a45b71-82a2-4f3b-b5c2-27329f15b6a9', - github_id:'61416e3b-70db-4eb4-803a-2d54da390211', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1UsersMeWorksGetHandler = http.get('/api/v1/users/@me/works',() => { - return new HttpResponse.json({ - works:[ - { - id:'3ebbb63b-166e-48c4-855c-10adea434c46', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'3c957592-0691-49bd-b79d-6f5ce6dce554', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'73ec73f4-16f8-440e-999c-76384e8a09d0', - github_id:'f4c5f3f3-82cf-461f-9fca-9f9eee806018', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', - thumbnail:{ - id:'f5a304cb-7aed-4246-b301-e5309cdeff36', - asset_type:'', -user:{ - id:'607d5e66-ddde-46d6-a2b0-84eca7447a4c', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'96263bb1-c807-4dcc-a013-ac0c4bd23148', - github_id:'e214264e-9985-467a-a33e-dea7f6f01911', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - }) -}) -const ApiV1UsersUserIdWorksGetHandler = http.get('/api/v1/users/{user_id}/works',() => { - return new HttpResponse.json({ - works:[ - { - id:'6c4e060a-be66-42aa-aaf1-df3e9ab06d32', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'be6295d1-a3b7-4cc4-b623-96584be66e73', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'af8f1bfc-e63d-4b08-966b-b3f6f6f055ff', - github_id:'56293b27-4c2b-47d4-a1e2-87bb862b03cb', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', - thumbnail:{ - id:'707e9d62-a196-4af8-b0fa-e99a81c87d8d', - asset_type:'', -user:{ - id:'76ce9732-94e6-4821-a6c4-ca61855461b4', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'b2b62064-8178-49e3-923c-1c84c6d565b5', - github_id:'e896efd4-ec34-43f7-956a-4f1580538569', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'8c05d213-835b-436f-9c59-ef214f68b6fa', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'0c985c59-d33a-4d0a-88ec-ed91d2587b65', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'6a957a7d-710e-4440-a461-81b86333f7e5', - github_id:'cf7f970e-23f9-432a-8d7a-9e7f5bed71fb', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', - thumbnail:{ - id:'0c77ce5e-cfde-42cd-bca7-5339bb246e0e', - asset_type:'', -user:{ - id:'d5594d48-13b7-4183-a2ab-bee72760a193', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'2e647769-a92f-438b-a306-ce3ee965e1ab', - github_id:'e323fd69-386a-401b-b1f3-022d632fbfb9', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'b81efb21-cd30-4cdf-a4f4-89ce11c2daab', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'3b25d261-88b6-402a-966c-9a0e35b6090a', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4900b2fd-c71c-4fb4-83f0-d3965a11e43c', - github_id:'e385dc3a-1f15-4ca4-8630-e9dd9af82dc7', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', - thumbnail:{ - id:'b99a879b-65c4-4505-9313-5956eeb8b9f2', - asset_type:'', -user:{ - id:'4712eab1-9072-49e1-a8ff-ddf47bf22d5b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'aa3c4b36-b76b-4515-a311-815332e7a648', - github_id:'7eb029aa-6123-4fd7-93e2-34c91cfc8268', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'d8c73703-40b2-4350-9c43-b945a2128531', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'2ae01c54-faaa-45e3-a46e-bdca11425aa9', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'ee41eeb5-fb32-47dd-a0de-99c62e908ab6', - github_id:'428748fe-bc03-436f-a22b-eb2ecb85fd23', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', - thumbnail:{ - id:'c31366e3-4606-4dd8-b54c-e438147884e2', - asset_type:'', -user:{ - id:'e3cc0f0c-49ab-4fd0-8da1-d241b6b16677', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'a05787fa-de90-4feb-ba6e-647f8b600810', - github_id:'7ee5bd3a-164b-4d8c-8366-ab8073fcdcac', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'d4f46649-1079-4497-8d41-7e63aa3b0873', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'fddad8bc-64f2-4271-bf17-be8f69d5921f', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'b93972f7-90e8-446d-ad17-e2f318d3d16b', - github_id:'495c4c90-9ce8-4004-bc15-eec5e4143f25', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', - thumbnail:{ - id:'bfacaf3d-883a-4801-8902-b1fb14a7d933', - asset_type:'', -user:{ - id:'ac184053-8548-4bc9-84a6-e30a8d29bb67', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'6c3cb4b4-0373-41b5-9bbc-7dc24b2192a3', - github_id:'200857a6-2227-4d65-9974-568fb00f9d2b', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'38355367-a097-4d2e-b9e4-970d3f5ac708', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'79586b3d-d5c3-4048-97df-8878b8fcc32f', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'ed4dcd0c-a706-421b-982c-1a01770e4814', - github_id:'899b6fe6-c268-4496-ba08-70d40b99c013', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', - thumbnail:{ - id:'0a0c6908-7af0-4e72-8b7e-7e2e3251a480', - asset_type:'', -user:{ - id:'07e7c233-e417-400a-b2e2-fc730060eed7', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'d445863d-d93d-467d-92a9-b0b1414bb0ee', - github_id:'9ba75f41-f865-4d85-a45a-7db902b86abc', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - }) -}) -const ApiV1UsersMeFavoritesGetHandler = http.get('/api/v1/users/@me/favorites',() => { - return new HttpResponse.json({ - works:[ - ], - }) -}) -const ApiV1UsersUserIdFavoritesGetHandler = http.get('/api/v1/users/{user_id}/favorites',() => { - return new HttpResponse.json({ - works:[ - { - id:'1e50597b-daa0-44c2-a562-fe09609f4df8', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'121c7aae-0098-4f21-aa13-61082ac38ede', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'a3fe4695-ea57-4cbb-8b0e-050146c8b2b0', - github_id:'85e72911-3c72-4ce7-a558-06942450605d', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', - thumbnail:{ - id:'81989324-6983-446f-b33d-c009d9cedc42', - asset_type:'', -user:{ - id:'5f218e46-3e6b-4c6b-ba44-bed8b2eeda3a', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'09c79cc4-a11f-47e3-99fe-bfea63b11957', - github_id:'efc4a77a-8437-4d17-8d19-1a8ece0903ed', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'523cbf0f-04fa-414a-aa47-800c88104b01', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'c557ac5c-5607-40d3-982e-cf546b50f5ef', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'7820e7f5-03f4-48e6-8b18-3de2ebdb9ae7', - github_id:'719ca0e6-6d36-49c0-9d5f-4f24a697f026', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', - thumbnail:{ - id:'eaecead7-0736-4889-9a04-e13b6e7b3c85', - asset_type:'', -user:{ - id:'d68d8595-11b5-477e-ba21-39c92671525d', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'9585ddd4-6609-41ed-ae59-99bd3d6cadcd', - github_id:'900c501f-685a-4230-9afd-61caf79a3929', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'80d4afe8-7f90-4749-aa15-555c6e1872ee', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'cb2574b3-d454-4a4e-a371-0230066fb97f', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'f243445e-00be-402a-85e6-9bccca90ac25', - github_id:'90d340c2-8531-4a99-94d0-72e3e91436eb', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', - thumbnail:{ - id:'aca6618e-aca6-4846-8c39-b2dc2fbcf5c2', - asset_type:'', -user:{ - id:'8e5af487-2cdb-4fd2-beb0-1efc90e5a124', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'e5d2fa86-a786-431e-8934-e0e4bccf7a4c', - github_id:'095d03e3-cce5-471c-b87d-7322cc35583f', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'536195bd-0544-4cb3-b466-9b5c06d6e09c', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'53885845-602b-4475-92d2-ff0cac4a02e5', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'2001a652-d611-4ab7-bc62-60dfc1a2a9ad', - github_id:'1871402b-9b4c-4cdc-8b2e-5d0be6a64004', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', - thumbnail:{ - id:'f8b1c1e0-a430-4534-a937-377c58140de4', - asset_type:'', -user:{ - id:'595aaba2-611a-402e-b6e8-6f6110c16e89', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'a577421f-79a1-454c-9046-cd5b87cceffc', - github_id:'8c99f2ae-0c66-4995-aece-6c11e7db54ad', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - }) -}) -const ApiV1UsersMeAvatarPutHandler = http.put('/api/v1/users/@me/avatar',() => { - return new HttpResponse.json({ - id:'ae25ed0a-c238-4c7c-93be-2ca34cfb1846', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'2d998b92-38e0-4929-83a1-2979d120b775', - github_id:'cd6f6cad-ec86-4a40-a5f8-9ff7eda0328f', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1UsersMeAvatarDeleteHandler = http.delete('/api/v1/users/@me/avatar',() => { - return new HttpResponse.json({ - id:'8be4490c-7341-45bf-953e-ec9421f8210a', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'46989ec0-7f14-4760-9691-377d42ea82cf', - github_id:'5108ee2d-ec21-4039-9947-5ed54aaf7ed4', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -export const usersServiceHandlers = [ - ApiV1UsersMeGetHandler, - ApiV1UsersMePutHandler, - ApiV1UsersGetHandler, - ApiV1UsersUserIdGetHandler, - ApiV1UsersMeWorksGetHandler, - ApiV1UsersUserIdWorksGetHandler, - ApiV1UsersMeFavoritesGetHandler, - ApiV1UsersUserIdFavoritesGetHandler, - ApiV1UsersMeAvatarPutHandler, - ApiV1UsersMeAvatarDeleteHandler, -] diff --git a/msw/handlers/WorksService/handlers.ts b/msw/handlers/WorksService/handlers.ts deleted file mode 100644 index 05c55df..0000000 --- a/msw/handlers/WorksService/handlers.ts +++ /dev/null @@ -1,1293 +0,0 @@ -/* eslint-disable */ -/* This file is generated by protoc-gen-ts-msw-handlers */ -/* Do not edit this file manually */ -import { http, HttpResponse } from 'msw' -const ApiV1WorksGetHandler = http.get('/api/v1/works',() => { - return new HttpResponse.json({ - works:[ - { - id:'5a4ecfa0-8137-4abc-9cbf-9c250fea837f', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'18fcab02-7903-4c22-a5b5-e38773757420', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'7f1d601c-d203-4543-84d2-3bb9015dbc25', - github_id:'2dc47a02-c79b-4426-9429-998ef005e854', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', - thumbnail:{ - id:'d22fbe65-5c95-490e-ba0c-2142a9db3cb9', - asset_type:'', -user:{ - id:'8b37c4bd-d763-4dfb-b150-aca8578ab9bd', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4f350364-9312-4e88-ab5d-7c8391ab6f4f', - github_id:'3000da55-66fb-4785-8115-54d535ef3523', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'63565566-b1a9-4119-995b-d13481020657', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'8a79a0ae-dc21-41b2-be1c-6289955fa34b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'0191f786-5521-4967-b08c-99d4cb78e798', - github_id:'405b4d4b-53e1-4625-a6f5-3e8c0f1e4867', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', - thumbnail:{ - id:'28cdcbaf-35b0-4946-8fdf-9beb5c12a99c', - asset_type:'', -user:{ - id:'4b1ae33d-4366-4917-b94f-09d603dc21ad', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'f4c17614-0ee4-4834-be89-f2fca5e91354', - github_id:'9da99606-7dc6-4181-ace8-80d00ac2b00a', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'c569ebd4-e7d1-408a-954b-7a43a8f00018', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'403d54cd-9a5d-4153-9cf7-1fc2abf796cb', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'8ca9c713-f351-441b-8c69-0d7c503784ae', - github_id:'f371bfc9-93c2-4a57-be0a-cd4eeb66281b', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', - thumbnail:{ - id:'fd6894d0-f751-4857-82cd-fee013223dca', - asset_type:'', -user:{ - id:'c9b45a86-0c04-42c9-99e7-07b33b83e40e', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'136556a8-b90e-4302-9974-4c6a2b3d2438', - github_id:'c7653d1b-6b71-468f-9738-bd5ad3ed67f5', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - }) -}) -const ApiV1WorksPostHandler = http.post('/api/v1/works',() => { - return new HttpResponse.json({ - id:'58f7df51-ddb7-46a4-a7ff-9902ca1557d9', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'0270e1c2-b0cc-4ca0-93c3-de12b0a8d990', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'d4d0d52b-1512-4d55-8bf5-9648f103e801', - github_id:'1bb41da0-723c-49af-9033-4e47173c2ac9', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:[ - { - id:'5b2fc0af-1192-40ae-a957-c448fbe4fb6f', - asset_type:'', - user:{ - id:'6c7b88db-4a8c-4350-8267-0a9334e729fe', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'6158059f-9090-4f4d-a59e-ba0fb1874fa5', - github_id:'36a955b5-9917-4548-93eb-8032a047b70a', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - urls:[ - { - url:'http://iem.com/', - url_type:'http://iem.com/', - id:'43093858-0e60-4c42-82f2-1235540195cd', - user:{ - id:'7927b23c-384a-4b26-a8a9-5f9e1443ddf9', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'29274b04-8028-4d47-ba10-3a52aac70050', - github_id:'3e7d9c0a-7054-4911-a18f-b8934155bcd8', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - url:'http://iem.com/', - url_type:'http://iem.com/', - id:'4e04a527-bc49-47e3-a585-3389562c1cdd', - user:{ - id:'86d0a67a-bfab-4218-9592-36fe72c9b133', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'ea7f79b2-6ffb-49f0-b8c4-49a753955f40', - github_id:'6fce0e34-283f-4cca-91bc-b56183fa0cbe', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - visibility:'public', - tags:[ - { - id:'9d13c953-4a56-44cc-b495-4838ff33b207', - name:'Heloise Predovic', - color:'#94088E', - }, - { - id:'85e24c1d-759d-417e-94ca-e58d8d7512dc', - name:'Heloise Predovic', - color:'#94088E', - }, - ], - thumbnail:{ - id:'10300125-3873-48cf-bb00-267f983a44ed', - asset_type:'', - user:{ - id:'0885bc4b-6475-4477-ac6c-2781e1107023', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'400cd6fc-4547-4807-be9c-722bbd54df6a', - github_id:'4dfec659-12bb-40d9-8ec8-eaabd7d4295c', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1WorksWorkIdGetHandler = http.get('/api/v1/works/{work_id}',() => { - return new HttpResponse.json({ - id:'92fdc9d7-4985-4964-a1d5-4107ea58bea9', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'d32586c0-f37a-4fbf-8a26-7ed89a80260e', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'b5a96d64-869e-4c7c-9426-8446677f9042', - github_id:'d34cee52-b28e-4149-9d34-54cbef0d33ea', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:[ - { - id:'6e6bf3d5-27e5-48c7-882d-4eeb481f1aad', - asset_type:'', - user:{ - id:'00a5b5fc-0b40-4e23-ab05-c852726ea368', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'a04ae885-2fd6-412d-9d0d-7ded01abbe3a', - github_id:'8d8d26f8-7205-4197-8130-cade3ae681f2', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'b11df00e-7cbf-467d-90e8-7f37359c5f52', - asset_type:'', - user:{ - id:'a6a24ab3-495f-4b22-a4c3-6a5530447a2b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'21e1d76a-7fcf-42fe-9e31-9b0c60752a97', - github_id:'d7935c89-f00a-4a63-95bf-dc43f0446c0d', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'13b2c9f3-12a8-4fa6-9189-df8548523568', - asset_type:'', - user:{ - id:'36e4e26d-5f64-4dc7-9589-e014079cbf49', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'105a929f-27cb-4e02-b890-d979151aa23e', - github_id:'9383f865-9f04-4d41-a0f6-07883caef0ad', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - urls:[ - { - url:'http://iem.com/', - url_type:'http://iem.com/', - id:'0e3d6fc9-7411-41b1-b835-c3003b5ba181', - user:{ - id:'5babceaf-6fa3-42ff-8e97-623a755d139b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4811e40c-585e-4ed0-907a-a8e131324bf0', - github_id:'ba75794e-b2b2-491f-9093-4b66aad35638', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - visibility:'private', - tags:[ - { - id:'aa88a8e4-b1bd-4f2c-a1e7-78ff0f2ea752', - name:'Heloise Predovic', - color:'#94088E', - }, - ], - thumbnail:{ - id:'3b74be1b-0d2b-459d-942d-48d94797a95d', - asset_type:'', - user:{ - id:'38a063bb-27fd-4c5f-8f44-f7ee880de3dd', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4fbe0991-0b47-4a69-bad1-b662d9bdbfdc', - github_id:'32c363f6-826f-4f2c-b274-3141c8d9ce02', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1WorksWorkIdPutHandler = http.put('/api/v1/works/{work_id}',() => { - return new HttpResponse.json({ - id:'ba628654-cddc-4513-9e62-022d338fdb4c', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - user:{ - id:'2e63f6ad-6279-4af1-910e-d2e03f671045', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'a8e1845e-5472-4333-a584-cfb7618607c7', - github_id:'7d11157d-a99f-4c21-849f-8c944e0c3a33', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - assets:[ - { - id:'9c93debc-f83c-4b7d-81c4-b6e0a8159a50', - asset_type:'', - user:{ - id:'5540c83c-be85-48e7-897c-6154c6b9470b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'21c9b2e0-3acf-4b9e-8577-056181f7752a', - github_id:'3e9f410c-d3b9-40e2-8804-c9f13090b97a', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'07018df3-b610-4ea4-95db-fd9fab6c0a91', - asset_type:'', - user:{ - id:'62ef0681-73e4-498b-aa54-2e2d3cbfd248', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'5d493614-d036-4f47-a7a5-32c806d0077f', - github_id:'0d626054-08ac-4b35-ae0d-b7ae13e27ac5', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'8e433e19-cfaa-4a80-936d-c39f24d98e22', - asset_type:'', - user:{ - id:'17b0e620-7c5e-4dc7-93c7-37bd99e30d69', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'d25e0040-5a37-40a1-bebe-c7319995a451', - github_id:'663df728-b750-477c-982c-a15328ca6139', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - id:'a95de0ba-a93f-4651-a6b8-9b2511f6e723', - asset_type:'', - user:{ - id:'cec764ff-ffce-42f6-8e99-76cf89ab1eac', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'b3b183c8-b663-427d-9226-686fd7f3f9f7', - github_id:'ebf00b78-eb36-4f05-8f40-02b84bfc3165', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - urls:[ - { - url:'http://iem.com/', - url_type:'http://iem.com/', - id:'0bbf370d-45ae-4bad-9337-0e4d79d6054c', - user:{ - id:'fdf664c8-9cd9-4498-b104-dda1f87131fa', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'8619d955-fa32-4e06-a95f-31be03317f6e', - github_id:'8d8988ff-6c9a-42f9-bb4a-b185a23a6070', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - url:'http://iem.com/', - url_type:'http://iem.com/', - id:'859e8163-e955-427b-b3cd-b2bd64b70deb', - user:{ - id:'9cd6c8c8-701d-4dbb-8f43-62ec26173d8c', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'0db829a7-29d5-4693-a63a-e485ffdc52a7', - github_id:'25cf8bcd-90d4-493d-bd5c-e876407378eb', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - { - url:'http://iem.com/', - url_type:'http://iem.com/', - id:'a2732840-ec66-46d7-8780-7d715b4442f6', - user:{ - id:'dd42a034-6a2f-411f-9222-5e4409d040a8', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'b47389a7-82ff-43f2-bd64-1d17fa2ff8a0', - github_id:'762b7bb9-0a73-49cc-9627-7b73316258fe', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - ], - visibility:'draft', - tags:[ - { - id:'c1acb84e-3773-40bb-a96e-6f99f73961d3', - name:'Heloise Predovic', - color:'#94088E', - }, - ], - thumbnail:{ - id:'f68986ef-6b3e-46a2-bb20-7972f0838e71', - asset_type:'', - user:{ - id:'c72d9729-fd1f-467f-8e0d-31aa35617877', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'f73dd9e9-6a56-41bf-96bd-d52ed32660bf', - github_id:'94258eca-2d2c-4954-9e9e-efb5ccc3ac52', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }) -}) -const ApiV1WorksWorkIdDeleteHandler = http.delete('/api/v1/works/{work_id}',() => { - return new HttpResponse.json({ - }) -}) -const ApiV1WorksWorkIdCommentsPostHandler = http.post('/api/v1/works/{work_id}/comments',() => { - return new HttpResponse.json({ - id:'c42e305a-3fee-4a4c-8304-fc4ec7c8025f', - content:'', - user:{ - id:'30197424-ca04-4100-af54-493048579513', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'0344c092-15e4-47cc-a630-88fc5d9d0917', - github_id:'d1e15e0d-097a-49e7-9425-07733541e944', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - work_id:'c07ab53c-6b51-4d1f-adad-befa585090d9', - visibility:'draft', - reply_at:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - number_of_reply:'', - }) -}) -const ApiV1WorksWorkIdCommentsCommentIdDeleteHandler = http.delete('/api/v1/works/{work_id}/comments/{comment_id}',() => { - return new HttpResponse.json({ - }) -}) -const ApiV1WorksWorkIdCommentsGetHandler = http.get('/api/v1/works/{work_id}/comments',() => { - return new HttpResponse.json({ - comments:[ - { - id:'0d93ecf5-0413-40fc-a1cd-96f94c1950ef', - content:'', - user:{ - id:'0359ebe8-d910-4e5c-bd02-bb141e0475c6', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'3a8914a8-9385-4416-b8b3-b0b3a3bab799', - github_id:'8ffeeb1c-d506-49f9-8bdc-ada58af7b0be', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - work_id:'12bafde2-f2f1-4d8c-b633-4bb350767da7', - visibility:'private', - reply_at:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - number_of_reply:'', - }, - ], - }) -}) -const ApiV1WorksWorkIdCommentsCommentIdGetHandler = http.get('/api/v1/works/{work_id}/comments/{comment_id}',() => { - return new HttpResponse.json({ - comments:[ - { - id:'22079ae8-5847-4b8e-a060-4b4ef9e9973f', - content:'', - user:{ - id:'0a2266c7-e9b8-4282-ae46-95c6249e5f5a', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'aa00ea4c-4f78-4a14-b68a-4f809b26efb2', - github_id:'775ea661-2003-45bc-b490-a751196bd9c4', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - work_id:'525fff12-68c4-4d28-a4ec-ed1bf56765d4', - visibility:'private', - reply_at:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - number_of_reply:'', - }, - { - id:'483ba2a9-6909-49a9-a7ab-e1b739c34da0', - content:'', - user:{ - id:'7ad9bb50-dc8c-43ec-bc29-0e7c39f4d0f0', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'70d70680-7153-4687-87e7-79f585468aad', - github_id:'b5387ad5-0153-43c4-938f-8067a5eed036', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - work_id:'31b57e00-f36a-4989-8b48-7413ebe6b4ac', - visibility:'public', - reply_at:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - number_of_reply:'', - }, - ], - }) -}) -const ApiV1WorksWorkIdFavoriteGetHandler = http.get('/api/v1/works/{work_id}/favorite',() => { - return new HttpResponse.json({ - favorites:[ - { - work:{ - id:'5d49a0f1-0f5e-44c3-aa4d-0eb59780312f', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'fe4ee02a-09a8-434d-92e8-c4ea0716ad63', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'640300a6-0dde-4c3b-8408-4ded9f4b9dc8', - github_id:'092a5bfd-0ed2-4dea-9fc2-d10af92e8145', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', -thumbnail:{ - id:'33868bbc-4241-4611-8dc4-1913629dc658', - asset_type:'', -user:{ - id:'35ae6c5b-b5a8-4a83-8715-cfd4dd4a8c7b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'e6aef5d4-d280-4796-a243-03b6ca01ec37', - github_id:'a91d505a-ac1b-44cd-9dc7-8da4822ae1c5', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'7ec23539-c4a4-4670-8c4e-e42e933e8e3a', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'0e329fd1-3f4e-42b7-8310-23086ab8257c', - github_id:'02aeeb99-7735-4085-9b92-9a396a043ae9', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'219d6220-9f9f-4539-ab9d-79e4ffae20ad', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'ba307c73-16b1-4f63-83cb-fa3abbced7c5', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'c91cb7f8-81d5-44d2-af7d-0c05898286e7', - github_id:'1b380ca2-a2e3-46be-82b9-4adeb4fdae13', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', -thumbnail:{ - id:'a173a18d-8f04-4793-ace8-8321a2ed7ea1', - asset_type:'', -user:{ - id:'4ae5dfe4-5ae4-4a0e-8503-01a45faa5b30', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'ae7eab24-18f6-4ff3-a9d8-00d6245cb631', - github_id:'c372357b-b042-447e-bd0c-1f842b0beb1c', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'b7de23b1-b31c-4d09-86bf-c641c6668f21', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'819dd961-a625-41bf-bca8-2013d3419d3a', - github_id:'58bce933-af5d-4051-a35d-d447ebb90097', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - ], - is_favorite:'', - favorite_count:'', - }) -}) -const ApiV1WorksWorkIdFavoritePostHandler = http.post('/api/v1/works/{work_id}/favorite',() => { - return new HttpResponse.json({ - favorites:[ - { - work:{ - id:'12dc61e0-bec2-48d0-8cdd-953979dabd78', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'5be4ef73-ea88-4a18-a28f-e0879a04ca26', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'71d4fae0-ce2a-41e2-b054-b13a89ae69ee', - github_id:'271451cd-8087-4bef-8c49-ef8a2746d4cf', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', -thumbnail:{ - id:'4c49421b-895b-468c-a1cb-af82d50074a8', - asset_type:'', -user:{ - id:'ecf7d780-dc4a-448f-88fa-190ea95bf5ab', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'0051bc82-004c-4523-90bd-ab82b6f1d4c6', - github_id:'a29156a1-c6ef-4d90-b54c-d25a769b03c3', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'4167a7ec-7433-4e98-b94f-bd19625758a6', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'eb8e7a47-1295-4421-b8d9-e1ee1358227d', - github_id:'594047fb-5cf8-492d-918b-623019d3d9e0', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'5d94db7a-3a0c-4eae-b1c2-370ea04086d1', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'928f67d1-d1f8-4383-b9ca-222743a855d9', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'6721f180-c33f-4b57-a7bd-1dc3832f72b1', - github_id:'5795b5c7-d4c9-48d4-abf3-2610e2556954', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'draft', - tags:'', -thumbnail:{ - id:'90fc41fa-e757-4d56-8f3e-1ab5d564505d', - asset_type:'', -user:{ - id:'30eafb84-77f4-49a5-ad83-f948e072830f', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4cdccc5c-84ce-41b7-af33-45a760acd7a0', - github_id:'40aa5b22-bfb7-4d6c-b485-37a9e63b6db3', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'e3c6072a-bd2f-4d3e-8442-383bbe21169c', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'07bf1fce-bdc8-4809-8e73-5b8f6b6e05a5', - github_id:'de8e0d3a-daac-47e7-9a17-b2370d0d3cf0', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'1d761e0f-ebe1-4087-a7e6-88c7b79e30d6', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'0c92e6a1-53a9-4570-a4fc-d642fb6c71d1', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'f585adb6-3c48-496a-849a-c55062a5fbb8', - github_id:'af5d80de-a654-400c-a728-c5d2e9349e06', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', -thumbnail:{ - id:'b12a16a4-0d81-4b37-9e05-b26b7098e2be', - asset_type:'', -user:{ - id:'e4262219-56de-421a-8853-73175577c1aa', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'ff7291dc-61e7-4a83-90e2-3b4a7a461394', - github_id:'dffe7322-b755-4768-ada6-bad6bbc58bc8', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'975caea7-ef69-47d1-b105-fce4d0d445a5', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'1ae4d56d-a146-47d5-8ac9-65cd9b690058', - github_id:'38e5e540-ee8e-4c1f-9316-71b09f63113a', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - ], - is_favorite:'', - favorite_count:'', - }) -}) -const ApiV1WorksWorkIdFavoriteDeleteHandler = http.delete('/api/v1/works/{work_id}/favorite',() => { - return new HttpResponse.json({ - favorites:[ - { - work:{ - id:'5bcc35ac-523a-4a2f-9c1d-4c084882e82c', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'b08bb5ac-4127-42be-8fc4-3c6340b2d6e0', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'7ecd67c9-e8c1-4874-86c6-b2bdc4272a90', - github_id:'6815657d-29f8-419f-b4c8-4fc93b9093f4', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', -thumbnail:{ - id:'71cc4ff6-1a09-49fe-9981-fcdd981119d6', - asset_type:'', -user:{ - id:'61cc6357-73de-481b-8819-99b03cabd8d2', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'7668b9a6-76d9-439e-bb30-3f26588d24f8', - github_id:'7ecac673-6a66-495b-9ee7-a60e481e063e', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'bdcddeab-1f32-47c2-a538-547cdae4a54e', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'11084a5f-d620-49e8-afa0-f38049a07ec3', - github_id:'134c5758-e81d-4fe1-9455-e67521cf6270', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'6a6ce3fc-7146-42c4-b770-b255402ee156', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'88fb6016-4c81-4bdc-9b47-7703f89ed23a', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'cc58e021-ecb3-48d6-9c1c-62a30e557d96', - github_id:'f3099c30-bd74-462e-a2bf-1df8ca1b9ded', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', -thumbnail:{ - id:'5b7e714a-cda8-4552-ade9-68cdac4d7247', - asset_type:'', -user:{ - id:'143b4e10-a9b2-4105-b23c-5dfe98caf042', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'b9eace4c-da8c-4e43-b22c-2c6e5fad22a8', - github_id:'464df3a8-b3a5-4304-b26d-096527ddb2b6', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'47b474fb-c7f3-477d-a04b-6f98673c6464', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'83589c68-aa7a-4725-967e-055308597f2d', - github_id:'dc057429-c789-4ec1-8682-e885e25e722d', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'6f9b4264-29d2-404d-b010-456e129531fd', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'926c3f90-01db-4de6-91b6-33d5e956421b', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'a00951af-082e-45d8-a14a-b90f4b649e76', - github_id:'c3467394-0a5c-40a9-b054-816eb7df0fe8', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', -thumbnail:{ - id:'95ec3d66-7546-4ad4-8e1a-1e1ea9a8c73c', - asset_type:'', -user:{ - id:'1eb31b8e-dbb1-4b64-95a4-5669072246c2', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'6c98ca9c-c200-45a2-b44b-476b2c4ff1a2', - github_id:'567be364-f3c0-46cb-9ffa-801834793448', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'97dff453-50a1-451b-b2ba-66584d0a5353', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'27e4d27e-f729-4abb-85a8-24f14f7fc17c', - github_id:'9eeb5e29-afdc-4df1-aca6-0416c8360699', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'7fbc598a-7d9c-4d83-bbb3-fc6548585912', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'e8b36689-727e-4f13-b11c-e06cec4bbe22', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'6381ea7f-de9e-48f0-9382-6cf7c851da0a', - github_id:'91182205-edde-4ed9-b1ed-0693d7f04f17', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'private', - tags:'', -thumbnail:{ - id:'b2a58c0a-2b82-4ebc-a84b-52634918c30b', - asset_type:'', -user:{ - id:'a2c9d3d2-43e2-4844-87b1-a1982ffc6e90', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'e19807b7-6749-4d17-b653-891807bfe74d', - github_id:'8d779524-4c12-44d9-8d4c-b001427ecc68', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'8c63cb49-b3f1-4a37-8eae-712cc7f555e6', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'44a52a8a-eda5-48c3-b6ed-ed2df5b9a60a', - github_id:'31c429cb-ff56-42e0-abf3-c0c495cac942', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - { - work:{ - id:'79106782-46a1-4e0a-9ee1-ce2a2dfc5dad', - title:'vel', - description:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - description_html:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', -user:{ - id:'f3bfc93c-099d-4a65-814b-0085446e8065', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4a327a25-0ae7-407e-81d7-25249a285f28', - github_id:'0fde752e-0cf1-45bb-847b-2c4667bf68ab', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - assets:'', - urls:'http://iem.com/', - visibility:'public', - tags:'', -thumbnail:{ - id:'0727932d-1181-421e-909a-2b8b74a5960d', - asset_type:'', -user:{ - id:'8d848070-dd60-4a20-99ad-42e12d05098f', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'4b8847f9-555f-4774-9822-7e47cfa31152', - github_id:'03a823b9-6a90-46f1-ab20-85e5471770d2', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - extension:'', - url:'http://iem.com/', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', -}, - favorite_count:'', - is_favorite:'', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - user:{ - id:'91ce8b98-67bc-449a-8aae-63a1f733047f', - name:'Heloise Predovic', - display_name:'Heloise Predovic', - avatar_url:'http://iem.com/', - profile:'vel dolor occaecati ut et iste tempora fugit blanditiis soluta totam quibusdam asperiores ut et architecto maiores earum quo eius minima est modi sunt iste qui est dolore commodi reprehenderit omnis qui similique quia sed ut autem inventore in dolorem.', - twitter_id:'f28f88f4-f184-4b4f-98de-9d25c7ded790', - github_id:'cdce5e6b-0dd8-49bb-abb5-cc8fe4b0fa4f', - created_at:'2021-09-01T00:00:00Z', - updated_at:'2021-09-01T00:00:00Z', - }, - created_at:'2021-09-01T00:00:00Z', - }, - ], - is_favorite:'', - favorite_count:'', - }) -}) -export const worksServiceHandlers = [ - ApiV1WorksGetHandler, - ApiV1WorksPostHandler, - ApiV1WorksWorkIdGetHandler, - ApiV1WorksWorkIdPutHandler, - ApiV1WorksWorkIdDeleteHandler, - ApiV1WorksWorkIdCommentsPostHandler, - ApiV1WorksWorkIdCommentsCommentIdDeleteHandler, - ApiV1WorksWorkIdCommentsGetHandler, - ApiV1WorksWorkIdCommentsCommentIdGetHandler, - ApiV1WorksWorkIdFavoriteGetHandler, - ApiV1WorksWorkIdFavoritePostHandler, - ApiV1WorksWorkIdFavoriteDeleteHandler, -] diff --git a/msw/types/index.ts b/msw/types/index.ts deleted file mode 100644 index 8f084e0..0000000 --- a/msw/types/index.ts +++ /dev/null @@ -1,274 +0,0 @@ -export type User = { - id: string; - name: string; - displayName: string; - avatarUrl: string; - profile: string; - twitterId: string; - githubId: string; - createdAt: string; - updatedAt: string; -} -export type AssetType = 'UNKNOWN' | 'zip' | 'image' | 'video' | 'music' | 'model' ; -export type Asset = { - id: string; - assetType: AssetType; - user: User; - extension: string; - url: string; - createdAt: string; - updatedAt: string; -} -export type CreateAssetRequest = { - file: any; - assetType: AssetType; -} -export type CreateAssetResponse = { - id: string; -} -export type DeleteAssetRequest = { - id: string; -} -export type DeleteAssetResponse = { - status: string; -} -export type DiscordToken = { - accessToken: string; - refreshToken: string; - expiredAt: string; -} -export type DiscordCallbackRequest = { - code: string; -} -export type SignUpRequest = { - name: string; - email: string; - password: string; - displayName: string; - avatarUrl: string; -} -export type PostTokenRequest = { - refreshToken: string; -} -export type PostTokenResponse = { - expiredAt: string; - refreshToken: string; - accessToken: string; -} -export type Tag = { - id: string; - name: string; - color: string; -} -export type GetTagsRequest = { - limit: string; - smallestTagId: string; - biggestTagId: string; - w: string; -} -export type GetTagsResponse = { - tags: Tag[]; -} -export type PostTagRequest = { - name: string; - color: string; -} -export type GetTagRequest = { - tagId: string; -} -export type PutTagRequest = { - tagId: string; - name: string; - color: string; -} -export type DeleteTagRequest = { - tagId: string; -} -export type DeleteTagResponse = { - message: string; -} -export type GetUsersRequest = { - limit: number; - oldestUserId: string; - newestUserId: string; -} -export type GetUsersResponse = { - users: User[]; -} -export type Url = { - url: string; - urlType: string; - id: string; - user: User; - createdAt: string; - updatedAt: string; -} -export type Work = { - id: string; - title: string; - description: string; - descriptionHtml: string; - user: User; - assets: Asset[]; - urls: Url[]; - visibility: string; - tags: Tag[]; - thumbnail: Asset; - favoriteCount: number; - isFavorite: boolean; - createdAt: string; - updatedAt: string; -} -export type Comment = { - id: string; - content: string; - user: User; - workId: string; - visibility: string; - replyAt: string; - createdAt: string; - updatedAt: string; - numberOfReply: number; -} -export type GetUserRequest = { - userId: string; -} -export type GetUserWorksRequest = { - userId: string; - visibility: string; - newestUserId: string; - oldestUserId: string; - tags: string; - limit: number; -} -export type GetUserFavoritesRequest = { - userId: string; -} -export type GetUserWorksResponse = { - works: Work[]; -} -export type GetUserFavoritesResponse = { - works: Work[]; -} -export type PutMeRequest = { - displayName: string; - profile: string; - twitterId: string; - githubId: string; -} -export type PutMeAvatarRequest = { - file: string; -} -export type GetMeWorksRequest = { - visibility: string; - oldestUserId: string; - newestUserId: string; - tags: string; - limit: number; -} -export type GetMeWorksResponse = { - works: Work[]; -} -export type GetMeFavoritesResponse = { - works: Work[]; -} -export type CreateWorkRequest = { - title: string; - description: string; - visibility: string; - thumbnailAssetId: string; - assetsId: string; - urls: UrlInfo[]; - tagsId: string; -} -export type GetWorksResponse = { - works: Work[]; -} -export type GetWorksRequest = { - page: number; - limit: number; - visibility: string; - tagNames: string; - tagIds: string; - searchWord: string; -} -export type GetWorkRequest = { - workId: string; -} -export type DeleteWorkRequest = { - workId: string; -} -export type UpdateWorkRequest = { - workId: string; - title: string; - description: string; - visibility: string; - thumbnailAssetId: string; - assetsId: string; - urls: UrlInfo[]; - tagsId: string; -} -export type UrlInfo = { - url: string; - urlType: string; -} -export type GetCommentsRequest = { - workId: string; - limit: number; - oldestCommentId: string; - newestCommentId: string; -} -export type PostCommentRequest = { - workId: string; - replyAt: string; - visibility: string; -} -export type PostCommentResponse = { - content: string; -} -export type GetReplyCommentsRequest = { - workId: string; - commentId: string; - limit: number; - oldestCommentId: string; - newestCommentId: string; -} -export type GetCommentsResponse = { - comments: Comment[]; -} -export type DeleteCommentRequest = { - workId: string; - commentId: string; -} -export type DeleteCommentResponse = { - status: string; -} -export type GetWorkFavoriteRequest = { - workId: string; -} -export type GetWorkFavoriteResponseItem = { - work: Work; - user: User; - createdAt: string; -} -export type GetWorkFavoriteResponse = { - favorites: GetWorkFavoriteResponseItem[]; - isFavorite: boolean; - favoriteCount: number; -} -export type PostWorkFavoriteRequest = { - workId: string; -} -export type PostWorkFavoriteResponse = { - favorites: GetWorkFavoriteResponseItem[]; - isFavorite: boolean; - favoriteCount: number; -} -export type DeleteWorkFavoriteRequest = { - workId: string; -} -export type DeleteWorkFavoriteResponse = { - favorites: GetWorkFavoriteResponseItem[]; - isFavorite: boolean; - favoriteCount: number; -}