Skip to content

Commit

Permalink
予約投稿のエンドポイントを移動
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 committed Sep 29, 2024
1 parent da7dbb9 commit bfb6a7e
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 93 deletions.
12 changes: 6 additions & 6 deletions packages/backend/src/server/api/EndpointsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ import * as ep___notes_children from './endpoints/notes/children.js';
import * as ep___notes_clips from './endpoints/notes/clips.js';
import * as ep___notes_conversation from './endpoints/notes/conversation.js';
import * as ep___notes_create from './endpoints/notes/create.js';
import * as ep___notes_schedule_create from './endpoints/notes/create-schedule.js';
import * as ep___notes_schedule_list from './endpoints/notes/list-schedule.js';
import * as ep___notes_schedule_create from './endpoints/notes/schedule/create.js';
import * as ep___notes_schedule_list from './endpoints/notes/schedule/list.js';
import * as ep___notes_schedule_delete from './endpoints/notes/schedule/delete.js';
import * as ep___notes_delete from './endpoints/notes/delete.js';
import * as ep___notes_update from './endpoints/notes/update.js';
import * as ep___notes_schedule_delete from './endpoints/notes/delete-schedule.js';
import * as ep___notes_favorites_create from './endpoints/notes/favorites/create.js';
import * as ep___notes_favorites_delete from './endpoints/notes/favorites/delete.js';
import * as ep___notes_featured from './endpoints/notes/featured.js';
Expand Down Expand Up @@ -698,11 +698,11 @@ const $notes_children: Provider = { provide: 'ep:notes/children', useClass: ep__
const $notes_clips: Provider = { provide: 'ep:notes/clips', useClass: ep___notes_clips.default };
const $notes_conversation: Provider = { provide: 'ep:notes/conversation', useClass: ep___notes_conversation.default };
const $notes_create: Provider = { provide: 'ep:notes/create', useClass: ep___notes_create.default };
const $notes_schedule_create: Provider = { provide: 'ep:notes/create-schedule', useClass: ep___notes_schedule_create.default };
const $notes_schedule_list: Provider = { provide: 'ep:notes/list-schedule', useClass: ep___notes_schedule_list.default };
const $notes_schedule_create: Provider = { provide: 'ep:notes/schedule/create', useClass: ep___notes_schedule_create.default };
const $notes_schedule_list: Provider = { provide: 'ep:notes/schedule/list', useClass: ep___notes_schedule_list.default };
const $notes_schedule_delete: Provider = { provide: 'ep:notes/schedule/delete', useClass: ep___notes_schedule_delete.default };
const $notes_delete: Provider = { provide: 'ep:notes/delete', useClass: ep___notes_delete.default };
const $notes_update: Provider = { provide: 'ep:notes/update', useClass: ep___notes_update.default };
const $notes_schedule_delete: Provider = { provide: 'ep:notes/delete-schedule', useClass: ep___notes_schedule_delete.default };
const $notes_favorites_create: Provider = { provide: 'ep:notes/favorites/create', useClass: ep___notes_favorites_create.default };
const $notes_favorites_delete: Provider = { provide: 'ep:notes/favorites/delete', useClass: ep___notes_favorites_delete.default };
const $notes_featured: Provider = { provide: 'ep:notes/featured', useClass: ep___notes_featured.default };
Expand Down
12 changes: 6 additions & 6 deletions packages/backend/src/server/api/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ import * as ep___notes_children from './endpoints/notes/children.js';
import * as ep___notes_clips from './endpoints/notes/clips.js';
import * as ep___notes_conversation from './endpoints/notes/conversation.js';
import * as ep___notes_create from './endpoints/notes/create.js';
import * as ep___notes_schedule_create from './endpoints/notes/create-schedule.js';
import * as ep___notes_schedule_list from './endpoints/notes/list-schedule.js';
import * as ep___notes_schedule_create from './endpoints/notes/schedule/create.js';
import * as ep___notes_schedule_list from './endpoints/notes/schedule/list.js';
import * as ep___notes_schedule_delete from './endpoints/notes/schedule/delete.js';
import * as ep___notes_delete from './endpoints/notes/delete.js';
import * as ep___notes_update from './endpoints/notes/update.js';
import * as ep___notes_schedule_delete from './endpoints/notes/delete-schedule.js';
import * as ep___notes_favorites_create from './endpoints/notes/favorites/create.js';
import * as ep___notes_favorites_delete from './endpoints/notes/favorites/delete.js';
import * as ep___notes_featured from './endpoints/notes/featured.js';
Expand Down Expand Up @@ -701,11 +701,11 @@ const eps = [
['notes/clips', ep___notes_clips],
['notes/conversation', ep___notes_conversation],
['notes/create', ep___notes_create],
['notes/create-schedule', ep___notes_schedule_create],
['notes/list-schedule', ep___notes_schedule_list],
['notes/schedule/create', ep___notes_schedule_create],
['notes/schedule/list', ep___notes_schedule_list],
['notes/schedule/delete', ep___notes_schedule_delete],
['notes/delete', ep___notes_delete],
['notes/update', ep___notes_update],
['notes/delete-schedule', ep___notes_schedule_delete],
['notes/favorites/create', ep___notes_favorites_create],
['notes/favorites/delete', ep___notes_favorites_delete],
['notes/featured', ep___notes_featured],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { DI } from '@/di-symbols.js';
import { QueueService } from '@/core/QueueService.js';
import { MiNoteSchedule } from '@/models/_.js';
import { IdService } from '@/core/IdService.js';
import { ApiError } from '../../error.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['notes'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const meta = {
tags: ['notes'],

requireCredential: true,
kind: 'write:notes',

limit: {
duration: ms('1hour'),
Expand Down
32 changes: 16 additions & 16 deletions packages/cherrypick-js/etc/cherrypick-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1609,12 +1609,12 @@ declare namespace entities {
NotesConversationResponse,
NotesCreateRequest,
NotesCreateResponse,
NotesCreateScheduleRequest,
NotesListScheduleRequest,
NotesListScheduleResponse,
NotesScheduleCreateRequest,
NotesScheduleListRequest,
NotesScheduleListResponse,
NotesScheduleDeleteRequest,
NotesDeleteRequest,
NotesUpdateRequest,
NotesDeleteScheduleRequest,
NotesFavoritesCreateRequest,
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
Expand Down Expand Up @@ -2671,15 +2671,9 @@ type NotesCreateRequest = operations['notes___create']['requestBody']['content']
// @public (undocumented)
type NotesCreateResponse = operations['notes___create']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesCreateScheduleRequest = operations['notes___create-schedule']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesDeleteRequest = operations['notes___delete']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesDeleteScheduleRequest = operations['notes___delete-schedule']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesEventsSearchRequest = operations['notes___events___search']['requestBody']['content']['application/json'];

Expand Down Expand Up @@ -2710,12 +2704,6 @@ type NotesHybridTimelineRequest = operations['notes___hybrid-timeline']['request
// @public (undocumented)
type NotesHybridTimelineResponse = operations['notes___hybrid-timeline']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesListScheduleRequest = operations['notes___list-schedule']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesListScheduleResponse = operations['notes___list-schedule']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesLocalTimelineRequest = operations['notes___local-timeline']['requestBody']['content']['application/json'];

Expand Down Expand Up @@ -2767,6 +2755,18 @@ type NotesRequest = operations['notes']['requestBody']['content']['application/j
// @public (undocumented)
type NotesResponse = operations['notes']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesScheduleCreateRequest = operations['notes___schedule___create']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesScheduleDeleteRequest = operations['notes___schedule___delete']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesScheduleListRequest = operations['notes___schedule___list']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesScheduleListResponse = operations['notes___schedule___list']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesSearchByTagRequest = operations['notes___search-by-tag']['requestBody']['content']['application/json'];

Expand Down
14 changes: 7 additions & 7 deletions packages/cherrypick-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3116,7 +3116,7 @@ declare module '../api.js' {
*
* **Credential required**: *Yes* / **Permission**: *write:notes*
*/
request<E extends 'notes/create-schedule', P extends Endpoints[E]['req']>(
request<E extends 'notes/schedule/create', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
Expand All @@ -3127,7 +3127,7 @@ declare module '../api.js' {
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
request<E extends 'notes/list-schedule', P extends Endpoints[E]['req']>(
request<E extends 'notes/schedule/list', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
Expand All @@ -3136,9 +3136,9 @@ declare module '../api.js' {
/**
* No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:notes*
* **Credential required**: *Yes*
*/
request<E extends 'notes/delete', P extends Endpoints[E]['req']>(
request<E extends 'notes/schedule/delete', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
Expand All @@ -3149,7 +3149,7 @@ declare module '../api.js' {
*
* **Credential required**: *Yes* / **Permission**: *write:notes*
*/
request<E extends 'notes/update', P extends Endpoints[E]['req']>(
request<E extends 'notes/delete', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
Expand All @@ -3158,9 +3158,9 @@ declare module '../api.js' {
/**
* No description provided.
*
* **Credential required**: *Yes*
* **Credential required**: *Yes* / **Permission**: *write:notes*
*/
request<E extends 'notes/delete-schedule', P extends Endpoints[E]['req']>(
request<E extends 'notes/update', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
Expand Down
20 changes: 10 additions & 10 deletions packages/cherrypick-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,12 @@ import type {
NotesConversationResponse,
NotesCreateRequest,
NotesCreateResponse,
NotesCreateScheduleRequest,
NotesListScheduleRequest,
NotesListScheduleResponse,
NotesScheduleCreateRequest,
NotesScheduleListRequest,
NotesScheduleListResponse,
NotesScheduleDeleteRequest,
NotesDeleteRequest,
NotesUpdateRequest,
NotesDeleteScheduleRequest,
NotesFavoritesCreateRequest,
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
Expand Down Expand Up @@ -891,11 +891,11 @@ export type Endpoints = {
'notes/clips': { req: NotesClipsRequest; res: NotesClipsResponse };
'notes/conversation': { req: NotesConversationRequest; res: NotesConversationResponse };
'notes/create': { req: NotesCreateRequest; res: NotesCreateResponse };
'notes/create-schedule': { req: NotesCreateScheduleRequest; res: EmptyResponse };
'notes/list-schedule': { req: NotesListScheduleRequest; res: NotesListScheduleResponse };
'notes/schedule/create': { req: NotesScheduleCreateRequest; res: EmptyResponse };
'notes/schedule/list': { req: NotesScheduleListRequest; res: NotesScheduleListResponse };
'notes/schedule/delete': { req: NotesScheduleDeleteRequest; res: EmptyResponse };
'notes/delete': { req: NotesDeleteRequest; res: EmptyResponse };
'notes/update': { req: NotesUpdateRequest; res: EmptyResponse };
'notes/delete-schedule': { req: NotesDeleteScheduleRequest; res: EmptyResponse };
'notes/favorites/create': { req: NotesFavoritesCreateRequest; res: EmptyResponse };
'notes/favorites/delete': { req: NotesFavoritesDeleteRequest; res: EmptyResponse };
'notes/featured': { req: NotesFeaturedRequest; res: NotesFeaturedResponse };
Expand Down Expand Up @@ -1303,11 +1303,11 @@ export const endpointReqTypes: Record<keyof Endpoints, 'application/json' | 'mul
'notes/clips': 'application/json',
'notes/conversation': 'application/json',
'notes/create': 'application/json',
'notes/create-schedule': 'application/json',
'notes/list-schedule': 'application/json',
'notes/schedule/create': 'application/json',
'notes/schedule/list': 'application/json',
'notes/schedule/delete': 'application/json',
'notes/delete': 'application/json',
'notes/update': 'application/json',
'notes/delete-schedule': 'application/json',
'notes/favorites/create': 'application/json',
'notes/favorites/delete': 'application/json',
'notes/featured': 'application/json',
Expand Down
8 changes: 4 additions & 4 deletions packages/cherrypick-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ export type NotesConversationRequest = operations['notes___conversation']['reque
export type NotesConversationResponse = operations['notes___conversation']['responses']['200']['content']['application/json'];
export type NotesCreateRequest = operations['notes___create']['requestBody']['content']['application/json'];
export type NotesCreateResponse = operations['notes___create']['responses']['200']['content']['application/json'];
export type NotesCreateScheduleRequest = operations['notes___create-schedule']['requestBody']['content']['application/json'];
export type NotesListScheduleRequest = operations['notes___list-schedule']['requestBody']['content']['application/json'];
export type NotesListScheduleResponse = operations['notes___list-schedule']['responses']['200']['content']['application/json'];
export type NotesScheduleCreateRequest = operations['notes___schedule___create']['requestBody']['content']['application/json'];
export type NotesScheduleListRequest = operations['notes___schedule___list']['requestBody']['content']['application/json'];
export type NotesScheduleListResponse = operations['notes___schedule___list']['responses']['200']['content']['application/json'];
export type NotesScheduleDeleteRequest = operations['notes___schedule___delete']['requestBody']['content']['application/json'];
export type NotesDeleteRequest = operations['notes___delete']['requestBody']['content']['application/json'];
export type NotesUpdateRequest = operations['notes___update']['requestBody']['content']['application/json'];
export type NotesDeleteScheduleRequest = operations['notes___delete-schedule']['requestBody']['content']['application/json'];
export type NotesFavoritesCreateRequest = operations['notes___favorites___create']['requestBody']['content']['application/json'];
export type NotesFavoritesDeleteRequest = operations['notes___favorites___delete']['requestBody']['content']['application/json'];
export type NotesFeaturedRequest = operations['notes___featured']['requestBody']['content']['application/json'];
Expand Down
Loading

0 comments on commit bfb6a7e

Please sign in to comment.