fix(schedule): narrow persistence error operation
This commit is contained in:
@@ -71,7 +71,7 @@ const PERSISTENCE_ERROR_SCHEMA = {
|
||||
properties: {
|
||||
code: { type: 'string', required: true, const: 'persistence_uncertain' },
|
||||
message: { type: 'string', required: true },
|
||||
operation: { type: 'string', required: true, enum: ['create', 'list', 'delete', 'dispatch'] },
|
||||
operation: { type: 'string', required: true, enum: ['create', 'list', 'delete'] },
|
||||
id: { type: 'string' },
|
||||
},
|
||||
} as const
|
||||
|
||||
@@ -76,8 +76,8 @@ export interface ScheduleReminderPresentation {
|
||||
readonly deliveryMode: ScheduleDeliveryMode
|
||||
}
|
||||
|
||||
/** Operations whose persistence barrier may be uncertain. */
|
||||
export type SchedulePersistenceOperation = 'create' | 'list' | 'delete' | 'dispatch'
|
||||
/** Management operations whose persistence barrier may be uncertain. */
|
||||
export type SchedulePersistenceOperation = 'create' | 'list' | 'delete'
|
||||
|
||||
/** Stable error returned for an empty reminder prompt. */
|
||||
export interface InvalidPromptError {
|
||||
|
||||
Reference in New Issue
Block a user