diff --git a/src/core/dpl-cms/dpl-cms.ts b/src/core/dpl-cms/dpl-cms.ts index d5bef31934..5cade9eb6b 100644 --- a/src/core/dpl-cms/dpl-cms.ts +++ b/src/core/dpl-cms/dpl-cms.ts @@ -19,6 +19,19 @@ import type { CampaignMatchPOST200, CampaignMatchPOSTBodyItem, CampaignMatchPOSTParams, + DplOpeningHoursCreatePOST200, + DplOpeningHoursCreatePOSTBody, + DplOpeningHoursCreatePOSTParams, + DplOpeningHoursListGET200Item, + DplOpeningHoursListGETParams, + DplOpeningHoursDeleteDELETEParams, + DplOpeningHoursUpdatePATCH200, + DplOpeningHoursUpdatePATCHBody, + DplOpeningHoursUpdatePATCHParams, + EventPATCHBody, + EventPATCHParams, + EventsGET200Item, + EventsGETParams, ProxyUrlGET200, ProxyUrlGETParams } from "./model"; @@ -91,6 +104,350 @@ export const useCampaignMatchPOST = < >(mutationFn, mutationOptions); }; +/** + * @summary Create individual opening hours + */ +export const dplOpeningHoursCreatePOST = ( + dplOpeningHoursCreatePOSTBody: BodyType, + params?: DplOpeningHoursCreatePOSTParams +) => { + return fetcher({ + url: `/dpl_opening_hours`, + method: "post", + headers: { "Content-Type": "application/json" }, + data: dplOpeningHoursCreatePOSTBody, + params + }); +}; + +export type DplOpeningHoursCreatePOSTMutationResult = NonNullable< + Awaited> +>; +export type DplOpeningHoursCreatePOSTMutationBody = + BodyType; +export type DplOpeningHoursCreatePOSTMutationError = ErrorType; + +export const useDplOpeningHoursCreatePOST = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { + data: BodyType; + params?: DplOpeningHoursCreatePOSTParams; + }, + TContext + >; +}) => { + const { mutation: mutationOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { + data: BodyType; + params?: DplOpeningHoursCreatePOSTParams; + } + > = (props) => { + const { data, params } = props ?? {}; + + return dplOpeningHoursCreatePOST(data, params); + }; + + return useMutation< + Awaited>, + TError, + { + data: BodyType; + params?: DplOpeningHoursCreatePOSTParams; + }, + TContext + >(mutationFn, mutationOptions); +}; + +/** + * @summary List all opening hours + */ +export const dplOpeningHoursListGET = ( + params?: DplOpeningHoursListGETParams, + signal?: AbortSignal +) => { + return fetcher({ + url: `/dpl_opening_hours`, + method: "get", + signal, + params + }); +}; + +export const getDplOpeningHoursListGETQueryKey = ( + params?: DplOpeningHoursListGETParams +) => [`/dpl_opening_hours`, ...(params ? [params] : [])]; + +export type DplOpeningHoursListGETQueryResult = NonNullable< + Awaited> +>; +export type DplOpeningHoursListGETQueryError = ErrorType; + +export const useDplOpeningHoursListGET = < + TData = Awaited>, + TError = ErrorType +>( + params?: DplOpeningHoursListGETParams, + options?: { + query?: UseQueryOptions< + Awaited>, + TError, + TData + >; + } +): UseQueryResult & { queryKey: QueryKey } => { + const { query: queryOptions } = options ?? {}; + + const queryKey = + queryOptions?.queryKey ?? getDplOpeningHoursListGETQueryKey(params); + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => dplOpeningHoursListGET(params, signal); + + const query = useQuery< + Awaited>, + TError, + TData + >(queryKey, queryFn, queryOptions); + + return { + queryKey, + ...query + }; +}; + +/** + * @summary Delete individual opening hours + */ +export const dplOpeningHoursDeleteDELETE = ( + id: string, + params?: DplOpeningHoursDeleteDELETEParams +) => { + return fetcher({ + url: `/dpl_opening_hours/${id}`, + method: "delete", + params + }); +}; + +export type DplOpeningHoursDeleteDELETEMutationResult = NonNullable< + Awaited> +>; + +export type DplOpeningHoursDeleteDELETEMutationError = ErrorType; + +export const useDplOpeningHoursDeleteDELETE = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: string; params?: DplOpeningHoursDeleteDELETEParams }, + TContext + >; +}) => { + const { mutation: mutationOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { id: string; params?: DplOpeningHoursDeleteDELETEParams } + > = (props) => { + const { id, params } = props ?? {}; + + return dplOpeningHoursDeleteDELETE(id, params); + }; + + return useMutation< + Awaited>, + TError, + { id: string; params?: DplOpeningHoursDeleteDELETEParams }, + TContext + >(mutationFn, mutationOptions); +}; + +/** + * @summary Update individual opening hours + */ +export const dplOpeningHoursUpdatePATCH = ( + id: string, + dplOpeningHoursUpdatePATCHBody: BodyType, + params?: DplOpeningHoursUpdatePATCHParams +) => { + return fetcher({ + url: `/dpl_opening_hours/${id}`, + method: "patch", + headers: { "Content-Type": "application/json" }, + data: dplOpeningHoursUpdatePATCHBody, + params + }); +}; + +export type DplOpeningHoursUpdatePATCHMutationResult = NonNullable< + Awaited> +>; +export type DplOpeningHoursUpdatePATCHMutationBody = + BodyType; +export type DplOpeningHoursUpdatePATCHMutationError = ErrorType; + +export const useDplOpeningHoursUpdatePATCH = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { + id: string; + data: BodyType; + params?: DplOpeningHoursUpdatePATCHParams; + }, + TContext + >; +}) => { + const { mutation: mutationOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { + id: string; + data: BodyType; + params?: DplOpeningHoursUpdatePATCHParams; + } + > = (props) => { + const { id, data, params } = props ?? {}; + + return dplOpeningHoursUpdatePATCH(id, data, params); + }; + + return useMutation< + Awaited>, + TError, + { + id: string; + data: BodyType; + params?: DplOpeningHoursUpdatePATCHParams; + }, + TContext + >(mutationFn, mutationOptions); +}; + +/** + * @summary Update single events + */ +export const eventPATCH = ( + uuid: string, + eventPATCHBody: BodyType, + params?: EventPATCHParams +) => { + return fetcher({ + url: `/dpl_event/${uuid}`, + method: "patch", + headers: { "Content-Type": "application/json" }, + data: eventPATCHBody, + params + }); +}; + +export type EventPATCHMutationResult = NonNullable< + Awaited> +>; +export type EventPATCHMutationBody = BodyType; +export type EventPATCHMutationError = ErrorType; + +export const useEventPATCH = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { uuid: string; data: BodyType; params?: EventPATCHParams }, + TContext + >; +}) => { + const { mutation: mutationOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { uuid: string; data: BodyType; params?: EventPATCHParams } + > = (props) => { + const { uuid, data, params } = props ?? {}; + + return eventPATCH(uuid, data, params); + }; + + return useMutation< + Awaited>, + TError, + { uuid: string; data: BodyType; params?: EventPATCHParams }, + TContext + >(mutationFn, mutationOptions); +}; + +/** + * @summary Retrieve all events + */ +export const eventsGET = (params?: EventsGETParams, signal?: AbortSignal) => { + return fetcher({ + url: `/dpl_event`, + method: "get", + signal, + params + }); +}; + +export const getEventsGETQueryKey = (params?: EventsGETParams) => [ + `/dpl_event`, + ...(params ? [params] : []) +]; + +export type EventsGETQueryResult = NonNullable< + Awaited> +>; +export type EventsGETQueryError = ErrorType; + +export const useEventsGET = < + TData = Awaited>, + TError = ErrorType +>( + params?: EventsGETParams, + options?: { + query?: UseQueryOptions< + Awaited>, + TError, + TData + >; + } +): UseQueryResult & { queryKey: QueryKey } => { + const { query: queryOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getEventsGETQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal + }) => eventsGET(params, signal); + + const query = useQuery>, TError, TData>( + queryKey, + queryFn, + queryOptions + ); + + return { + queryKey, + ...query + }; +}; + /** * @summary Generate proxy url */ diff --git a/src/core/dpl-cms/model/dplOpeningHoursCreatePOST200.ts b/src/core/dpl-cms/model/dplOpeningHoursCreatePOST200.ts new file mode 100644 index 0000000000..8ae7d83627 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursCreatePOST200.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursCreatePOST200Category } from "./dplOpeningHoursCreatePOST200Category"; + +export type DplOpeningHoursCreatePOST200 = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursCreatePOST200Category; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursCreatePOST200Category.ts b/src/core/dpl-cms/model/dplOpeningHoursCreatePOST200Category.ts new file mode 100644 index 0000000000..37ef7cdc2c --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursCreatePOST200Category.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursCreatePOST200Category = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTBody.ts b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTBody.ts new file mode 100644 index 0000000000..fb29e67cc0 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTBody.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursCreatePOSTBodyCategory } from "./dplOpeningHoursCreatePOSTBodyCategory"; + +export type DplOpeningHoursCreatePOSTBody = { + /** An serial unique id of the opening hours instance. */ + id?: number; + category: DplOpeningHoursCreatePOSTBodyCategory; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTBodyCategory.ts b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTBodyCategory.ts new file mode 100644 index 0000000000..1a398fd690 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTBodyCategory.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursCreatePOSTBodyCategory = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTFormat.ts new file mode 100644 index 0000000000..35b1d321eb --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursCreatePOSTFormat = + typeof DplOpeningHoursCreatePOSTFormat[keyof typeof DplOpeningHoursCreatePOSTFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursCreatePOSTFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTParams.ts b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTParams.ts new file mode 100644 index 0000000000..8cb2d34775 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursCreatePOSTParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursCreatePOSTFormat } from "./dplOpeningHoursCreatePOSTFormat"; + +export type DplOpeningHoursCreatePOSTParams = { + _format?: DplOpeningHoursCreatePOSTFormat; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursDELETE200.ts b/src/core/dpl-cms/model/dplOpeningHoursDELETE200.ts new file mode 100644 index 0000000000..3c31efd2d8 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursDELETE200.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursDELETE200Category } from "./dplOpeningHoursDELETE200Category"; + +export type DplOpeningHoursDELETE200 = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursDELETE200Category; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursDELETE200Category.ts b/src/core/dpl-cms/model/dplOpeningHoursDELETE200Category.ts new file mode 100644 index 0000000000..be93955947 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursDELETE200Category.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursDELETE200Category = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursDELETEFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursDELETEFormat.ts new file mode 100644 index 0000000000..f89951b735 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursDELETEFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursDELETEFormat = + typeof DplOpeningHoursDELETEFormat[keyof typeof DplOpeningHoursDELETEFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursDELETEFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursDELETEParams.ts b/src/core/dpl-cms/model/dplOpeningHoursDELETEParams.ts new file mode 100644 index 0000000000..a90b53f72a --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursDELETEParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursDELETEFormat } from "./dplOpeningHoursDELETEFormat"; + +export type DplOpeningHoursDELETEParams = { + _format?: DplOpeningHoursDELETEFormat; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursDeleteDELETEFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursDeleteDELETEFormat.ts new file mode 100644 index 0000000000..bf21d515a9 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursDeleteDELETEFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursDeleteDELETEFormat = + typeof DplOpeningHoursDeleteDELETEFormat[keyof typeof DplOpeningHoursDeleteDELETEFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursDeleteDELETEFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursDeleteDELETEParams.ts b/src/core/dpl-cms/model/dplOpeningHoursDeleteDELETEParams.ts new file mode 100644 index 0000000000..db37723cb5 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursDeleteDELETEParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursDeleteDELETEFormat } from "./dplOpeningHoursDeleteDELETEFormat"; + +export type DplOpeningHoursDeleteDELETEParams = { + _format?: DplOpeningHoursDeleteDELETEFormat; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursGET200.ts b/src/core/dpl-cms/model/dplOpeningHoursGET200.ts new file mode 100644 index 0000000000..b22525e057 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursGET200.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursGET200Category } from "./dplOpeningHoursGET200Category"; + +export type DplOpeningHoursGET200 = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursGET200Category; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursGET200Category.ts b/src/core/dpl-cms/model/dplOpeningHoursGET200Category.ts new file mode 100644 index 0000000000..0564b66965 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursGET200Category.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursGET200Category = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursGETFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursGETFormat.ts new file mode 100644 index 0000000000..3981fa5cb2 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursGETFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursGETFormat = + typeof DplOpeningHoursGETFormat[keyof typeof DplOpeningHoursGETFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursGETFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursGETOpeningHoursInstanceBody.ts b/src/core/dpl-cms/model/dplOpeningHoursGETOpeningHoursInstanceBody.ts new file mode 100644 index 0000000000..387e6601f5 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursGETOpeningHoursInstanceBody.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursGETOpeningHoursInstanceBodyCategory } from "./dplOpeningHoursGETOpeningHoursInstanceBodyCategory"; + +export type DplOpeningHoursGETOpeningHoursInstanceBody = { + /** An serial unique id of the opening hours instance. */ + id?: number; + category: DplOpeningHoursGETOpeningHoursInstanceBodyCategory; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursGETOpeningHoursInstanceBodyCategory.ts b/src/core/dpl-cms/model/dplOpeningHoursGETOpeningHoursInstanceBodyCategory.ts new file mode 100644 index 0000000000..7af331c98c --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursGETOpeningHoursInstanceBodyCategory.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursGETOpeningHoursInstanceBodyCategory = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursGETParams.ts b/src/core/dpl-cms/model/dplOpeningHoursGETParams.ts new file mode 100644 index 0000000000..a8703b9127 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursGETParams.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursGETFormat } from "./dplOpeningHoursGETFormat"; + +export type DplOpeningHoursGETParams = { _format?: DplOpeningHoursGETFormat }; diff --git a/src/core/dpl-cms/model/dplOpeningHoursListGET200Item.ts b/src/core/dpl-cms/model/dplOpeningHoursListGET200Item.ts new file mode 100644 index 0000000000..06f295e464 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursListGET200Item.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursListGET200ItemCategory } from "./dplOpeningHoursListGET200ItemCategory"; + +export type DplOpeningHoursListGET200Item = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursListGET200ItemCategory; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursListGET200ItemCategory.ts b/src/core/dpl-cms/model/dplOpeningHoursListGET200ItemCategory.ts new file mode 100644 index 0000000000..c4e673e31a --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursListGET200ItemCategory.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursListGET200ItemCategory = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursListGETFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursListGETFormat.ts new file mode 100644 index 0000000000..d294d873c0 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursListGETFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursListGETFormat = + typeof DplOpeningHoursListGETFormat[keyof typeof DplOpeningHoursListGETFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursListGETFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursListGETParams.ts b/src/core/dpl-cms/model/dplOpeningHoursListGETParams.ts new file mode 100644 index 0000000000..7dd497aed3 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursListGETParams.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursListGETFormat } from "./dplOpeningHoursListGETFormat"; + +export type DplOpeningHoursListGETParams = { + _format?: DplOpeningHoursListGETFormat; + branch_id?: number; + from_date?: string; + to_date?: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPATCH200.ts b/src/core/dpl-cms/model/dplOpeningHoursPATCH200.ts new file mode 100644 index 0000000000..d8c6cadfa9 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPATCH200.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursPATCH200Category } from "./dplOpeningHoursPATCH200Category"; + +export type DplOpeningHoursPATCH200 = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursPATCH200Category; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPATCH200Category.ts b/src/core/dpl-cms/model/dplOpeningHoursPATCH200Category.ts new file mode 100644 index 0000000000..02ac5b5ba1 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPATCH200Category.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursPATCH200Category = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPATCHFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursPATCHFormat.ts new file mode 100644 index 0000000000..51429f8658 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPATCHFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursPATCHFormat = + typeof DplOpeningHoursPATCHFormat[keyof typeof DplOpeningHoursPATCHFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursPATCHFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPATCHParams.ts b/src/core/dpl-cms/model/dplOpeningHoursPATCHParams.ts new file mode 100644 index 0000000000..4b2cf0a915 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPATCHParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursPATCHFormat } from "./dplOpeningHoursPATCHFormat"; + +export type DplOpeningHoursPATCHParams = { + _format?: DplOpeningHoursPATCHFormat; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPOST200.ts b/src/core/dpl-cms/model/dplOpeningHoursPOST200.ts new file mode 100644 index 0000000000..d329229550 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPOST200.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursPOST200Category } from "./dplOpeningHoursPOST200Category"; + +export type DplOpeningHoursPOST200 = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursPOST200Category; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPOST200Category.ts b/src/core/dpl-cms/model/dplOpeningHoursPOST200Category.ts new file mode 100644 index 0000000000..a750a58267 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPOST200Category.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursPOST200Category = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPOSTFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursPOSTFormat.ts new file mode 100644 index 0000000000..d1cf28f8a2 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPOSTFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursPOSTFormat = + typeof DplOpeningHoursPOSTFormat[keyof typeof DplOpeningHoursPOSTFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursPOSTFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursPOSTParams.ts b/src/core/dpl-cms/model/dplOpeningHoursPOSTParams.ts new file mode 100644 index 0000000000..ed46730de5 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursPOSTParams.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursPOSTFormat } from "./dplOpeningHoursPOSTFormat"; + +export type DplOpeningHoursPOSTParams = { _format?: DplOpeningHoursPOSTFormat }; diff --git a/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCH200.ts b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCH200.ts new file mode 100644 index 0000000000..edc4a4fa7e --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCH200.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursUpdatePATCH200Category } from "./dplOpeningHoursUpdatePATCH200Category"; + +export type DplOpeningHoursUpdatePATCH200 = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursUpdatePATCH200Category; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCH200Category.ts b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCH200Category.ts new file mode 100644 index 0000000000..853f9c98ba --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCH200Category.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursUpdatePATCH200Category = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHBody.ts b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHBody.ts new file mode 100644 index 0000000000..6b84f621de --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHBody.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursUpdatePATCHBodyCategory } from "./dplOpeningHoursUpdatePATCHBodyCategory"; + +export type DplOpeningHoursUpdatePATCHBody = { + /** An serial unique id of the opening hours instance. */ + id: number; + category: DplOpeningHoursUpdatePATCHBodyCategory; + /** The date which the opening hours applies to. In ISO 8601 format. */ + date: string; + /** When the opening hours start. In format HH:MM */ + start_time: string; + /** When the opening hours end. In format HH:MM */ + end_time: string; + /** The id for the branch the instance belongs to */ + branch_id: number; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHBodyCategory.ts b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHBodyCategory.ts new file mode 100644 index 0000000000..58d6c18f2c --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHBodyCategory.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursUpdatePATCHBodyCategory = { + title: string; + /** A CSS compatible color code which can be used to represent the category */ + color: string; +}; diff --git a/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHFormat.ts b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHFormat.ts new file mode 100644 index 0000000000..6651804d3f --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type DplOpeningHoursUpdatePATCHFormat = + typeof DplOpeningHoursUpdatePATCHFormat[keyof typeof DplOpeningHoursUpdatePATCHFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DplOpeningHoursUpdatePATCHFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHParams.ts b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHParams.ts new file mode 100644 index 0000000000..0e41f89ea9 --- /dev/null +++ b/src/core/dpl-cms/model/dplOpeningHoursUpdatePATCHParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { DplOpeningHoursUpdatePATCHFormat } from "./dplOpeningHoursUpdatePATCHFormat"; + +export type DplOpeningHoursUpdatePATCHParams = { + _format?: DplOpeningHoursUpdatePATCHFormat; +}; diff --git a/src/core/dpl-cms/model/eventPATCHBody.ts b/src/core/dpl-cms/model/eventPATCHBody.ts new file mode 100644 index 0000000000..e6008b04e8 --- /dev/null +++ b/src/core/dpl-cms/model/eventPATCHBody.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { EventPATCHBodyState } from "./eventPATCHBodyState"; +import type { EventPATCHBodyExternalData } from "./eventPATCHBodyExternalData"; + +export type EventPATCHBody = { + /** The state of the event. */ + state?: EventPATCHBodyState; + /** Data for the event provided by a third party. */ + external_data?: EventPATCHBodyExternalData; +}; diff --git a/src/core/dpl-cms/model/eventPATCHBodyExternalData.ts b/src/core/dpl-cms/model/eventPATCHBodyExternalData.ts new file mode 100644 index 0000000000..2a09817473 --- /dev/null +++ b/src/core/dpl-cms/model/eventPATCHBodyExternalData.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * Data for the event provided by a third party. + */ +export type EventPATCHBodyExternalData = { + /** An absolute url provided by the third party where end users can access the event. */ + url?: string; + /** An absolute url provided by the third party where editorial users can administer the event. Accessing this url should require authentication. */ + admin_url?: string; +}; diff --git a/src/core/dpl-cms/model/eventPATCHBodyState.ts b/src/core/dpl-cms/model/eventPATCHBodyState.ts new file mode 100644 index 0000000000..4a9a27d384 --- /dev/null +++ b/src/core/dpl-cms/model/eventPATCHBodyState.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * The state of the event. + */ +export type EventPATCHBodyState = + typeof EventPATCHBodyState[keyof typeof EventPATCHBodyState]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EventPATCHBodyState = { + TicketSaleNotOpen: "TicketSaleNotOpen", + Active: "Active", + SoldOut: "SoldOut", + Cancelled: "Cancelled", + Occurred: "Occurred" +} as const; diff --git a/src/core/dpl-cms/model/eventPATCHFormat.ts b/src/core/dpl-cms/model/eventPATCHFormat.ts new file mode 100644 index 0000000000..872f86e6ba --- /dev/null +++ b/src/core/dpl-cms/model/eventPATCHFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type EventPATCHFormat = + typeof EventPATCHFormat[keyof typeof EventPATCHFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EventPATCHFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/eventPATCHParams.ts b/src/core/dpl-cms/model/eventPATCHParams.ts new file mode 100644 index 0000000000..9f2c8c35a1 --- /dev/null +++ b/src/core/dpl-cms/model/eventPATCHParams.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { EventPATCHFormat } from "./eventPATCHFormat"; + +export type EventPATCHParams = { _format?: EventPATCHFormat }; diff --git a/src/core/dpl-cms/model/eventsGET200Item.ts b/src/core/dpl-cms/model/eventsGET200Item.ts new file mode 100644 index 0000000000..8fa4d7f597 --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200Item.ts @@ -0,0 +1,43 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { EventsGET200ItemImage } from "./eventsGET200ItemImage"; +import type { EventsGET200ItemState } from "./eventsGET200ItemState"; +import type { EventsGET200ItemDateTime } from "./eventsGET200ItemDateTime"; +import type { EventsGET200ItemAddress } from "./eventsGET200ItemAddress"; +import type { EventsGET200ItemTicketCategoriesItem } from "./eventsGET200ItemTicketCategoriesItem"; +import type { EventsGET200ItemSeries } from "./eventsGET200ItemSeries"; +import type { EventsGET200ItemExternalData } from "./eventsGET200ItemExternalData"; + +export type EventsGET200Item = { + /** A unique identifer for the event. */ + uuid: string; + /** The event title. */ + title: string; + /** An absolute url end users should use to view the event at the website. */ + url: string; + /** When the event was created. In ISO 8601 format. */ + created_at: string; + /** When the event was last updated. In ISO 8601 format. */ + updated_at: string; + /** The main image for the event. */ + image?: EventsGET200ItemImage; + /** The state of the event. */ + state: EventsGET200ItemState; + /** When the event occurs. */ + date_time: EventsGET200ItemDateTime; + /** Where the event occurs. */ + address?: EventsGET200ItemAddress; + /** Ticket categories used for the event. Not present for events without ticketing. */ + ticket_categories?: EventsGET200ItemTicketCategoriesItem[]; + /** An event may be part of a series. One example of this is recurring events. */ + series?: EventsGET200ItemSeries; + /** An editorial description of the event. */ + description?: string; + /** Data for the event provided by a third party. */ + external_data?: EventsGET200ItemExternalData; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemAddress.ts b/src/core/dpl-cms/model/eventsGET200ItemAddress.ts new file mode 100644 index 0000000000..bbe4bdfe5a --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemAddress.ts @@ -0,0 +1,23 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * Where the event occurs. + */ +export type EventsGET200ItemAddress = { + /** Name of the location where the event occurs. This could be the name of a library branch. */ + location?: string; + /** Street name and number. */ + street: string; + /** Zip code. */ + zip_code: number; + /** City. */ + city: string; + /** Country code in ISO 3166-1 alpha-2 format. E.g. DK for Denmark. */ + country: string; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemDateTime.ts b/src/core/dpl-cms/model/eventsGET200ItemDateTime.ts new file mode 100644 index 0000000000..3412127cc0 --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemDateTime.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * When the event occurs. + */ +export type EventsGET200ItemDateTime = { + /** Start time in ISO 8601 format. */ + start: string; + /** End time in ISO 8601 format. */ + end: string; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemExternalData.ts b/src/core/dpl-cms/model/eventsGET200ItemExternalData.ts new file mode 100644 index 0000000000..0c875ee0fd --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemExternalData.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * Data for the event provided by a third party. + */ +export type EventsGET200ItemExternalData = { + /** An absolute url provided by the third party where end users can access the event. */ + url?: string; + /** An absolute url provided by the third party where editorial users can administer the event. Accessing this url should require authentication. */ + admin_url?: string; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemImage.ts b/src/core/dpl-cms/model/eventsGET200ItemImage.ts new file mode 100644 index 0000000000..23de28af3c --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemImage.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * The main image for the event. + */ +export type EventsGET200ItemImage = { + /** An absolute url for the image. */ + url: string; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemSeries.ts b/src/core/dpl-cms/model/eventsGET200ItemSeries.ts new file mode 100644 index 0000000000..2143d5184f --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemSeries.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * An event may be part of a series. One example of this is recurring events. + */ +export type EventsGET200ItemSeries = { + /** The unique identifier for the series. All events belonging to the same series will have the same value. */ + uuid: string; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemState.ts b/src/core/dpl-cms/model/eventsGET200ItemState.ts new file mode 100644 index 0000000000..d19f1acb63 --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemState.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * The state of the event. + */ +export type EventsGET200ItemState = + typeof EventsGET200ItemState[keyof typeof EventsGET200ItemState]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EventsGET200ItemState = { + TicketSaleNotOpen: "TicketSaleNotOpen", + Active: "Active", + SoldOut: "SoldOut", + Cancelled: "Cancelled", + Occurred: "Occurred" +} as const; diff --git a/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItem.ts b/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItem.ts new file mode 100644 index 0000000000..d48e65b32d --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItem.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { EventsGET200ItemTicketCategoriesItemCount } from "./eventsGET200ItemTicketCategoriesItemCount"; +import type { EventsGET200ItemTicketCategoriesItemPrice } from "./eventsGET200ItemTicketCategoriesItemPrice"; + +export type EventsGET200ItemTicketCategoriesItem = { + /** The name of the ticket category. */ + title: string; + /** Number of tickets for the event. */ + count?: EventsGET200ItemTicketCategoriesItemCount; + /** The price of a ticket in the category */ + price: EventsGET200ItemTicketCategoriesItemPrice; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItemCount.ts b/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItemCount.ts new file mode 100644 index 0000000000..66173c408e --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItemCount.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * Number of tickets for the event. + */ +export type EventsGET200ItemTicketCategoriesItemCount = { + /** Total number of tickets for the event. */ + total?: number; +}; diff --git a/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItemPrice.ts b/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItemPrice.ts new file mode 100644 index 0000000000..ebd9b01166 --- /dev/null +++ b/src/core/dpl-cms/model/eventsGET200ItemTicketCategoriesItemPrice.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +/** + * The price of a ticket in the category + */ +export type EventsGET200ItemTicketCategoriesItemPrice = { + /** The currency of the price in ISO 4217 format. E.g. DKK for Danish krone. */ + currency: string; + /** The price of a ticket in the minor unit of the currency. E.g. 750 for 7,50 EUR. Use 0 for free tickets. */ + value: number; +}; diff --git a/src/core/dpl-cms/model/eventsGETFormat.ts b/src/core/dpl-cms/model/eventsGETFormat.ts new file mode 100644 index 0000000000..444b4f3e53 --- /dev/null +++ b/src/core/dpl-cms/model/eventsGETFormat.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ + +export type EventsGETFormat = + typeof EventsGETFormat[keyof typeof EventsGETFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EventsGETFormat = { + json: "json" +} as const; diff --git a/src/core/dpl-cms/model/eventsGETParams.ts b/src/core/dpl-cms/model/eventsGETParams.ts new file mode 100644 index 0000000000..0d134eba3d --- /dev/null +++ b/src/core/dpl-cms/model/eventsGETParams.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.8.1 🍺 + * Do not edit manually. + * DPL CMS - REST API + * The REST API provide by the core REST module. + * OpenAPI spec version: Versioning not supported + */ +import type { EventsGETFormat } from "./eventsGETFormat"; + +export type EventsGETParams = { _format?: EventsGETFormat }; diff --git a/src/core/dpl-cms/model/index.ts b/src/core/dpl-cms/model/index.ts index a2f3db36fc..4913881686 100644 --- a/src/core/dpl-cms/model/index.ts +++ b/src/core/dpl-cms/model/index.ts @@ -12,3 +12,56 @@ export * from "./campaignMatchPOSTBodyItemValuesItem"; export * from "./dplDasDigitalArticleOrderPOSTFormat"; export * from "./dplDasDigitalArticleOrderPOSTParams"; export * from "./dplDasDigitalArticleOrderPOSTBody"; +export * from "./dplOpeningHoursListGET200ItemCategory"; +export * from "./dplOpeningHoursListGET200Item"; +export * from "./eventPATCHFormat"; +export * from "./eventPATCHBodyState"; +export * from "./dplOpeningHoursListGETFormat"; +export * from "./dplOpeningHoursListGETParams"; +export * from "./eventPATCHBodyExternalData"; +export * from "./eventsGETFormat"; +export * from "./eventsGET200ItemState"; +export * from "./eventsGETParams"; +export * from "./eventPATCHParams"; +export * from "./eventPATCHBody"; +export * from "./eventsGET200ItemImage"; +export * from "./eventsGET200ItemTicketCategoriesItemPrice"; +export * from "./eventsGET200ItemTicketCategoriesItemCount"; +export * from "./eventsGET200ItemDateTime"; +export * from "./eventsGET200ItemAddress"; +export * from "./eventsGET200ItemSeries"; +export * from "./eventsGET200ItemTicketCategoriesItem"; +export * from "./eventsGET200ItemExternalData"; +export * from "./eventsGET200Item"; +export * from "./dplOpeningHoursGET200Category"; +export * from "./dplOpeningHoursGET200"; +export * from "./dplOpeningHoursGETParams"; +export * from "./dplOpeningHoursPATCH200Category"; +export * from "./dplOpeningHoursDELETE200Category"; +export * from "./dplOpeningHoursPATCHParams"; +export * from "./dplOpeningHoursPATCH200"; +export * from "./dplOpeningHoursPOST200Category"; +export * from "./dplOpeningHoursDELETE200"; +export * from "./dplOpeningHoursGETFormat"; +export * from "./dplOpeningHoursDELETEParams"; +export * from "./dplOpeningHoursPOSTFormat"; +export * from "./dplOpeningHoursPOST200"; +export * from "./dplOpeningHoursGETOpeningHoursInstanceBodyCategory"; +export * from "./dplOpeningHoursGETOpeningHoursInstanceBody"; +export * from "./dplOpeningHoursPOSTParams"; +export * from "./dplOpeningHoursPATCHFormat"; +export * from "./dplOpeningHoursDELETEFormat"; +export * from "./dplOpeningHoursCreatePOSTParams"; +export * from "./dplOpeningHoursCreatePOSTBody"; +export * from "./dplOpeningHoursCreatePOST200Category"; +export * from "./dplOpeningHoursCreatePOSTBodyCategory"; +export * from "./dplOpeningHoursCreatePOST200"; +export * from "./dplOpeningHoursCreatePOSTFormat"; +export * from "./dplOpeningHoursDeleteDELETEParams"; +export * from "./dplOpeningHoursDeleteDELETEFormat"; +export * from "./dplOpeningHoursUpdatePATCHParams"; +export * from "./dplOpeningHoursUpdatePATCHFormat"; +export * from "./dplOpeningHoursUpdatePATCH200"; +export * from "./dplOpeningHoursUpdatePATCHBody"; +export * from "./dplOpeningHoursUpdatePATCH200Category"; +export * from "./dplOpeningHoursUpdatePATCHBodyCategory";