"src/aura_engine_api/rest/controllers/public_controller.py" did not exist on "59e10ab810cbed07e989af48e5f30a1030e62c7a"
Newer
Older
import {
APICreate,
APIListPaginated,
APIRemove,
APIRetrieve,
APIUpdate,
createExtendableAPI,
} from '@rokoli/bnb/drf'
import { defineStore } from 'pinia'
import { createSteeringURL } from '@/api'
import { steeringAuthInit } from '@/stores/auth'
import { Note, Show } from '@/types'
type ReadonlyAttrs = 'id' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy' | 'ownerId'
export type NewNote = Omit<Note, ReadonlyAttrs>
type NoteCreateData = Omit<Note, ReadonlyAttrs>
type NoteUpdateData = Partial<Omit<Note, ReadonlyAttrs>>
export function newNote(timeslotId: number, show?: Show): NewNote {
title: '',
slug: '',
summary: '',
content: '',
imageId: null,
cbaId: null,
contributorIds: show?.hostIds ?? [],
}
}
export const useNoteStore = defineStore('notes', () => {
const endpoint = createSteeringURL.prefix('notes')
const { api, base } = createExtendableAPI<Note>(endpoint, steeringAuthInit)