diff --git a/.gitignore b/.gitignore index 74d8b2cb..29d1e618 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ json-server/ public/config.json public/access-config.json +public/release.json diff --git a/src/components/activation-code/activation-code-list.jsx b/src/components/activation-code/activation-code-list.jsx index b79cb89f..ef024099 100644 --- a/src/components/activation-code/activation-code-list.jsx +++ b/src/components/activation-code/activation-code-list.jsx @@ -128,10 +128,15 @@ function ActivationCodeList() { const dispatch = useDispatch(); const refreshCallback = (id) => { + const item = items.filter((e) => e['@id'] === id); + + if (item.length !== 1) { + return; + } + dispatch( - api.endpoints.postV1UserActivationCodesByIdRefreshCode.initiate({ - id, - userActivationCodeEmptyDto: JSON.stringify({}), + api.endpoints.postV1UserActivationCodesRefresh.initiate({ + userActivationCodeActivationCode: JSON.stringify({ activationCode: item[0].code }), }) ) .then((response) => { @@ -150,13 +155,11 @@ function ActivationCodeList() { columns.push({ path: "@id", dataFunction: (id) => { - const activationCodeId = idFromUrl(id); - return ( diff --git a/src/components/users/users-list.jsx b/src/components/users/users-list.jsx index c6a37752..938c1af8 100644 --- a/src/components/users/users-list.jsx +++ b/src/components/users/users-list.jsx @@ -14,8 +14,8 @@ import { displayError, } from "../util/list/toast-component/display-toast"; import { - useApiUsersIdremoveFromTenantMutation, - useApiV1UsersGetCollectionQuery, + useDeleteV1UsersByIdRemoveFromTenantMutation, + useGetV1UsersQuery, } from "../../redux/api/api.generated"; /** @@ -43,7 +43,7 @@ function UsersList() { // Delete call const [DeleteV1User, { isSuccess: isDeleteSuccess, error: isDeleteError }] = - useApiUsersIdremoveFromTenantMutation(); + useDeleteV1UsersByIdRemoveFromTenantMutation(); // Get method const { @@ -51,7 +51,7 @@ function UsersList() { error: usersGetError, isLoading, refetch, - } = useApiV1UsersGetCollectionQuery({ + } = useGetV1UsersQuery({ page, order: { createdAt: "desc" }, fullName: searchText, diff --git a/src/redux/api/api.generated.js b/src/redux/api/api.generated.js index 26b36aa7..5563e422 100644 --- a/src/redux/api/api.generated.js +++ b/src/redux/api/api.generated.js @@ -1,7 +1,7 @@ "use strict"; exports.__esModule = true; exports.useDeletePlaylistScreenRegionItemMutation = exports.usePutPlaylistScreenRegionItemMutation = exports.useGetV1ScreensByIdRegionsAndRegionIdPlaylistsQuery = exports.useDeleteV1ScreensByIdCampaignsAndCampaignIdMutation = exports.usePutV1ScreensByIdCampaignsMutation = exports.useGetV1ScreensByIdCampaignsQuery = exports.usePostScreenBindKeyMutation = exports.useDeleteV1ScreensByIdMutation = exports.usePutV1ScreensByIdMutation = exports.useGetV1ScreensByIdQuery = exports.usePostV1ScreensMutation = exports.useGetV1ScreensQuery = exports.useGetV1ScreenGroupsByIdScreensQuery = exports.useDeleteV1ScreenGroupsByIdCampaignsAndCampaignIdMutation = exports.usePutV1ScreenGroupsByIdCampaignsMutation = exports.useGetV1ScreenGroupsByIdCampaignsQuery = exports.useDeleteV1ScreenGroupsByIdMutation = exports.usePutV1ScreenGroupsByIdMutation = exports.useGetV1ScreenGroupsByIdQuery = exports.useGetScreenGroupCampaignItemQuery = exports.usePostV1ScreenGroupsMutation = exports.useGetV1ScreenGroupsQuery = exports.useDeleteV1PlaylistsByIdSlidesAndSlideIdMutation = exports.usePutV1PlaylistsByIdSlidesMutation = exports.useGetV1PlaylistsByIdSlidesQuery = exports.useDeleteV1PlaylistsByIdMutation = exports.usePutV1PlaylistsByIdMutation = exports.useGetV1PlaylistsByIdQuery = exports.usePostV1PlaylistsMutation = exports.useGetV1PlaylistsQuery = exports.useDeleteV1MediaByIdMutation = exports.useGetV1MediaByIdQuery = exports.usePostMediaCollectionMutation = exports.useGetV1MediaQuery = exports.useGetV1LayoutsByIdQuery = exports.useGetV1LayoutsQuery = exports.useGetV1FeedsByIdDataQuery = exports.useGetV1FeedsByIdQuery = exports.useGetV1FeedsQuery = exports.useGetV1FeedSourcesByIdConfigAndNameQuery = exports.useGetV1FeedSourcesByIdQuery = exports.useGetV1FeedSourcesQuery = exports.useGetV1CampaignsByIdScreensQuery = exports.useGetV1CampaignsByIdScreenGroupsQuery = exports.usePostRefreshTokenItemMutation = exports.useLoginCheckPostMutation = exports.usePostLoginInfoScreenMutation = exports.useGetOidcAuthUrlsItemQuery = exports.useGetOidcAuthTokenItemQuery = exports.api = void 0; -exports.useApiUsersIdremoveFromTenantMutation = exports.useApiV1UsersIdDeleteMutation = exports.useApiV1UsersIdPutMutation = exports.useApiV1UsersIdGetQuery = exports.useApiV1UsersPostMutation = exports.useApiV1UsersGetCollectionQuery = exports.usePostV1UserActivationCodesByIdRefreshCodeMutation = exports.useDeleteV1UserActivationCodesByIdMutation = exports.useGetV1UserActivationCodesByIdQuery = exports.usePostV1UserActivationCodesActivateMutation = exports.usePostV1UserActivationCodesMutation = exports.useGetV1UserActivationCodesQuery = exports.useDeleteV1ThemesByIdMutation = exports.usePutV1ThemesByIdMutation = exports.useGetV1ThemesByIdQuery = exports.usePostV1ThemesMutation = exports.useGetV1ThemesQuery = exports.useGetV1TenantsByIdQuery = exports.useGetV1TenantsQuery = exports.useGetV1TemplatesByIdQuery = exports.useGetV1TemplatesQuery = exports.usePutV1SlidesByIdPlaylistsMutation = exports.useGetV1SlidesByIdPlaylistsQuery = exports.useDeleteV1SlidesByIdMutation = exports.usePutV1SlidesByIdMutation = exports.useGetV1SlidesByIdQuery = exports.usePostV1SlidesMutation = exports.useGetV1SlidesQuery = exports.usePostScreenUnbindMutation = exports.useDeleteV1ScreensByIdScreenGroupsAndScreenGroupIdMutation = exports.usePutV1ScreensByIdScreenGroupsMutation = exports.useGetV1ScreensByIdScreenGroupsQuery = void 0; +exports.useDeleteV1UsersByIdRemoveFromTenantMutation = exports.useDeleteV1UsersByIdMutation = exports.usePutV1UsersByIdMutation = exports.useGetV1UsersByIdQuery = exports.usePostV1UsersMutation = exports.useGetV1UsersQuery = exports.useDeleteV1UserActivationCodesByIdMutation = exports.useGetV1UserActivationCodesByIdQuery = exports.usePostV1UserActivationCodesRefreshMutation = exports.usePostV1UserActivationCodesActivateMutation = exports.usePostV1UserActivationCodesMutation = exports.useGetV1UserActivationCodesQuery = exports.useDeleteV1ThemesByIdMutation = exports.usePutV1ThemesByIdMutation = exports.useGetV1ThemesByIdQuery = exports.usePostV1ThemesMutation = exports.useGetV1ThemesQuery = exports.useGetV1TenantsByIdQuery = exports.useGetV1TenantsQuery = exports.useGetV1TemplatesByIdQuery = exports.useGetV1TemplatesQuery = exports.usePutV1SlidesByIdPlaylistsMutation = exports.useGetV1SlidesByIdPlaylistsQuery = exports.useDeleteV1SlidesByIdMutation = exports.usePutV1SlidesByIdMutation = exports.useGetV1SlidesByIdQuery = exports.usePostV1SlidesMutation = exports.useGetV1SlidesQuery = exports.usePostScreenUnbindMutation = exports.useDeleteV1ScreensByIdScreenGroupsAndScreenGroupIdMutation = exports.usePutV1ScreensByIdScreenGroupsMutation = exports.useGetV1ScreensByIdScreenGroupsQuery = void 0; var react_1 = require("@reduxjs/toolkit/query/react"); var dynamic_base_query_1 = require("../dynamic-base-query"); exports.api = (0, react_1.createApi)({ @@ -528,7 +528,14 @@ exports.api = (0, react_1.createApi)({ query: function (queryArg) { return ({ url: "/v1/user-activation-codes/activate", method: "POST", - body: queryArg.userActivationCodeUserActivateInput + body: queryArg.userActivationCodeActivationCode + }); } + }), + postV1UserActivationCodesRefresh: build.mutation({ + query: function (queryArg) { return ({ + url: "/v1/user-activation-codes/refresh", + method: "POST", + body: queryArg.userActivationCodeActivationCode }); } }), getV1UserActivationCodesById: build.query({ @@ -542,14 +549,7 @@ exports.api = (0, react_1.createApi)({ method: "DELETE" }); } }), - postV1UserActivationCodesByIdRefreshCode: build.mutation({ - query: function (queryArg) { return ({ - url: "/v1/user-activation-codes/" + queryArg.id + "/refresh-code", - method: "POST", - body: queryArg.userActivationCodeEmptyDto - }); } - }), - apiV1UsersGetCollection: build.query({ + getV1Users: build.query({ query: function (queryArg) { return ({ url: "/v1/users", params: { @@ -563,30 +563,30 @@ exports.api = (0, react_1.createApi)({ } }); } }), - apiV1UsersPost: build.mutation({ + postV1Users: build.mutation({ query: function (queryArg) { return ({ url: "/v1/users", method: "POST", body: queryArg.userUserInput }); } }), - apiV1UsersIdGet: build.query({ + getV1UsersById: build.query({ query: function (queryArg) { return ({ url: "/v1/users/" + queryArg.id }); } }), - apiV1UsersIdPut: build.mutation({ + putV1UsersById: build.mutation({ query: function (queryArg) { return ({ url: "/v1/users/" + queryArg.id, method: "PUT", body: queryArg.userUserInput }); } }), - apiV1UsersIdDelete: build.mutation({ + deleteV1UsersById: build.mutation({ query: function (queryArg) { return ({ url: "/v1/users/" + queryArg.id, method: "DELETE" }); } }), - apiUsersIdremoveFromTenant: build.mutation({ + deleteV1UsersByIdRemoveFromTenant: build.mutation({ query: function (queryArg) { return ({ url: "/v1/users/" + queryArg.id + "/remove-from-tenant", method: "DELETE" @@ -594,4 +594,4 @@ exports.api = (0, react_1.createApi)({ }) }); } }); -exports.useGetOidcAuthTokenItemQuery = exports.api.useGetOidcAuthTokenItemQuery, exports.useGetOidcAuthUrlsItemQuery = exports.api.useGetOidcAuthUrlsItemQuery, exports.usePostLoginInfoScreenMutation = exports.api.usePostLoginInfoScreenMutation, exports.useLoginCheckPostMutation = exports.api.useLoginCheckPostMutation, exports.usePostRefreshTokenItemMutation = exports.api.usePostRefreshTokenItemMutation, exports.useGetV1CampaignsByIdScreenGroupsQuery = exports.api.useGetV1CampaignsByIdScreenGroupsQuery, exports.useGetV1CampaignsByIdScreensQuery = exports.api.useGetV1CampaignsByIdScreensQuery, exports.useGetV1FeedSourcesQuery = exports.api.useGetV1FeedSourcesQuery, exports.useGetV1FeedSourcesByIdQuery = exports.api.useGetV1FeedSourcesByIdQuery, exports.useGetV1FeedSourcesByIdConfigAndNameQuery = exports.api.useGetV1FeedSourcesByIdConfigAndNameQuery, exports.useGetV1FeedsQuery = exports.api.useGetV1FeedsQuery, exports.useGetV1FeedsByIdQuery = exports.api.useGetV1FeedsByIdQuery, exports.useGetV1FeedsByIdDataQuery = exports.api.useGetV1FeedsByIdDataQuery, exports.useGetV1LayoutsQuery = exports.api.useGetV1LayoutsQuery, exports.useGetV1LayoutsByIdQuery = exports.api.useGetV1LayoutsByIdQuery, exports.useGetV1MediaQuery = exports.api.useGetV1MediaQuery, exports.usePostMediaCollectionMutation = exports.api.usePostMediaCollectionMutation, exports.useGetV1MediaByIdQuery = exports.api.useGetV1MediaByIdQuery, exports.useDeleteV1MediaByIdMutation = exports.api.useDeleteV1MediaByIdMutation, exports.useGetV1PlaylistsQuery = exports.api.useGetV1PlaylistsQuery, exports.usePostV1PlaylistsMutation = exports.api.usePostV1PlaylistsMutation, exports.useGetV1PlaylistsByIdQuery = exports.api.useGetV1PlaylistsByIdQuery, exports.usePutV1PlaylistsByIdMutation = exports.api.usePutV1PlaylistsByIdMutation, exports.useDeleteV1PlaylistsByIdMutation = exports.api.useDeleteV1PlaylistsByIdMutation, exports.useGetV1PlaylistsByIdSlidesQuery = exports.api.useGetV1PlaylistsByIdSlidesQuery, exports.usePutV1PlaylistsByIdSlidesMutation = exports.api.usePutV1PlaylistsByIdSlidesMutation, exports.useDeleteV1PlaylistsByIdSlidesAndSlideIdMutation = exports.api.useDeleteV1PlaylistsByIdSlidesAndSlideIdMutation, exports.useGetV1ScreenGroupsQuery = exports.api.useGetV1ScreenGroupsQuery, exports.usePostV1ScreenGroupsMutation = exports.api.usePostV1ScreenGroupsMutation, exports.useGetScreenGroupCampaignItemQuery = exports.api.useGetScreenGroupCampaignItemQuery, exports.useGetV1ScreenGroupsByIdQuery = exports.api.useGetV1ScreenGroupsByIdQuery, exports.usePutV1ScreenGroupsByIdMutation = exports.api.usePutV1ScreenGroupsByIdMutation, exports.useDeleteV1ScreenGroupsByIdMutation = exports.api.useDeleteV1ScreenGroupsByIdMutation, exports.useGetV1ScreenGroupsByIdCampaignsQuery = exports.api.useGetV1ScreenGroupsByIdCampaignsQuery, exports.usePutV1ScreenGroupsByIdCampaignsMutation = exports.api.usePutV1ScreenGroupsByIdCampaignsMutation, exports.useDeleteV1ScreenGroupsByIdCampaignsAndCampaignIdMutation = exports.api.useDeleteV1ScreenGroupsByIdCampaignsAndCampaignIdMutation, exports.useGetV1ScreenGroupsByIdScreensQuery = exports.api.useGetV1ScreenGroupsByIdScreensQuery, exports.useGetV1ScreensQuery = exports.api.useGetV1ScreensQuery, exports.usePostV1ScreensMutation = exports.api.usePostV1ScreensMutation, exports.useGetV1ScreensByIdQuery = exports.api.useGetV1ScreensByIdQuery, exports.usePutV1ScreensByIdMutation = exports.api.usePutV1ScreensByIdMutation, exports.useDeleteV1ScreensByIdMutation = exports.api.useDeleteV1ScreensByIdMutation, exports.usePostScreenBindKeyMutation = exports.api.usePostScreenBindKeyMutation, exports.useGetV1ScreensByIdCampaignsQuery = exports.api.useGetV1ScreensByIdCampaignsQuery, exports.usePutV1ScreensByIdCampaignsMutation = exports.api.usePutV1ScreensByIdCampaignsMutation, exports.useDeleteV1ScreensByIdCampaignsAndCampaignIdMutation = exports.api.useDeleteV1ScreensByIdCampaignsAndCampaignIdMutation, exports.useGetV1ScreensByIdRegionsAndRegionIdPlaylistsQuery = exports.api.useGetV1ScreensByIdRegionsAndRegionIdPlaylistsQuery, exports.usePutPlaylistScreenRegionItemMutation = exports.api.usePutPlaylistScreenRegionItemMutation, exports.useDeletePlaylistScreenRegionItemMutation = exports.api.useDeletePlaylistScreenRegionItemMutation, exports.useGetV1ScreensByIdScreenGroupsQuery = exports.api.useGetV1ScreensByIdScreenGroupsQuery, exports.usePutV1ScreensByIdScreenGroupsMutation = exports.api.usePutV1ScreensByIdScreenGroupsMutation, exports.useDeleteV1ScreensByIdScreenGroupsAndScreenGroupIdMutation = exports.api.useDeleteV1ScreensByIdScreenGroupsAndScreenGroupIdMutation, exports.usePostScreenUnbindMutation = exports.api.usePostScreenUnbindMutation, exports.useGetV1SlidesQuery = exports.api.useGetV1SlidesQuery, exports.usePostV1SlidesMutation = exports.api.usePostV1SlidesMutation, exports.useGetV1SlidesByIdQuery = exports.api.useGetV1SlidesByIdQuery, exports.usePutV1SlidesByIdMutation = exports.api.usePutV1SlidesByIdMutation, exports.useDeleteV1SlidesByIdMutation = exports.api.useDeleteV1SlidesByIdMutation, exports.useGetV1SlidesByIdPlaylistsQuery = exports.api.useGetV1SlidesByIdPlaylistsQuery, exports.usePutV1SlidesByIdPlaylistsMutation = exports.api.usePutV1SlidesByIdPlaylistsMutation, exports.useGetV1TemplatesQuery = exports.api.useGetV1TemplatesQuery, exports.useGetV1TemplatesByIdQuery = exports.api.useGetV1TemplatesByIdQuery, exports.useGetV1TenantsQuery = exports.api.useGetV1TenantsQuery, exports.useGetV1TenantsByIdQuery = exports.api.useGetV1TenantsByIdQuery, exports.useGetV1ThemesQuery = exports.api.useGetV1ThemesQuery, exports.usePostV1ThemesMutation = exports.api.usePostV1ThemesMutation, exports.useGetV1ThemesByIdQuery = exports.api.useGetV1ThemesByIdQuery, exports.usePutV1ThemesByIdMutation = exports.api.usePutV1ThemesByIdMutation, exports.useDeleteV1ThemesByIdMutation = exports.api.useDeleteV1ThemesByIdMutation, exports.useGetV1UserActivationCodesQuery = exports.api.useGetV1UserActivationCodesQuery, exports.usePostV1UserActivationCodesMutation = exports.api.usePostV1UserActivationCodesMutation, exports.usePostV1UserActivationCodesActivateMutation = exports.api.usePostV1UserActivationCodesActivateMutation, exports.useGetV1UserActivationCodesByIdQuery = exports.api.useGetV1UserActivationCodesByIdQuery, exports.useDeleteV1UserActivationCodesByIdMutation = exports.api.useDeleteV1UserActivationCodesByIdMutation, exports.usePostV1UserActivationCodesByIdRefreshCodeMutation = exports.api.usePostV1UserActivationCodesByIdRefreshCodeMutation, exports.useApiV1UsersGetCollectionQuery = exports.api.useApiV1UsersGetCollectionQuery, exports.useApiV1UsersPostMutation = exports.api.useApiV1UsersPostMutation, exports.useApiV1UsersIdGetQuery = exports.api.useApiV1UsersIdGetQuery, exports.useApiV1UsersIdPutMutation = exports.api.useApiV1UsersIdPutMutation, exports.useApiV1UsersIdDeleteMutation = exports.api.useApiV1UsersIdDeleteMutation, exports.useApiUsersIdremoveFromTenantMutation = exports.api.useApiUsersIdremoveFromTenantMutation; +exports.useGetOidcAuthTokenItemQuery = exports.api.useGetOidcAuthTokenItemQuery, exports.useGetOidcAuthUrlsItemQuery = exports.api.useGetOidcAuthUrlsItemQuery, exports.usePostLoginInfoScreenMutation = exports.api.usePostLoginInfoScreenMutation, exports.useLoginCheckPostMutation = exports.api.useLoginCheckPostMutation, exports.usePostRefreshTokenItemMutation = exports.api.usePostRefreshTokenItemMutation, exports.useGetV1CampaignsByIdScreenGroupsQuery = exports.api.useGetV1CampaignsByIdScreenGroupsQuery, exports.useGetV1CampaignsByIdScreensQuery = exports.api.useGetV1CampaignsByIdScreensQuery, exports.useGetV1FeedSourcesQuery = exports.api.useGetV1FeedSourcesQuery, exports.useGetV1FeedSourcesByIdQuery = exports.api.useGetV1FeedSourcesByIdQuery, exports.useGetV1FeedSourcesByIdConfigAndNameQuery = exports.api.useGetV1FeedSourcesByIdConfigAndNameQuery, exports.useGetV1FeedsQuery = exports.api.useGetV1FeedsQuery, exports.useGetV1FeedsByIdQuery = exports.api.useGetV1FeedsByIdQuery, exports.useGetV1FeedsByIdDataQuery = exports.api.useGetV1FeedsByIdDataQuery, exports.useGetV1LayoutsQuery = exports.api.useGetV1LayoutsQuery, exports.useGetV1LayoutsByIdQuery = exports.api.useGetV1LayoutsByIdQuery, exports.useGetV1MediaQuery = exports.api.useGetV1MediaQuery, exports.usePostMediaCollectionMutation = exports.api.usePostMediaCollectionMutation, exports.useGetV1MediaByIdQuery = exports.api.useGetV1MediaByIdQuery, exports.useDeleteV1MediaByIdMutation = exports.api.useDeleteV1MediaByIdMutation, exports.useGetV1PlaylistsQuery = exports.api.useGetV1PlaylistsQuery, exports.usePostV1PlaylistsMutation = exports.api.usePostV1PlaylistsMutation, exports.useGetV1PlaylistsByIdQuery = exports.api.useGetV1PlaylistsByIdQuery, exports.usePutV1PlaylistsByIdMutation = exports.api.usePutV1PlaylistsByIdMutation, exports.useDeleteV1PlaylistsByIdMutation = exports.api.useDeleteV1PlaylistsByIdMutation, exports.useGetV1PlaylistsByIdSlidesQuery = exports.api.useGetV1PlaylistsByIdSlidesQuery, exports.usePutV1PlaylistsByIdSlidesMutation = exports.api.usePutV1PlaylistsByIdSlidesMutation, exports.useDeleteV1PlaylistsByIdSlidesAndSlideIdMutation = exports.api.useDeleteV1PlaylistsByIdSlidesAndSlideIdMutation, exports.useGetV1ScreenGroupsQuery = exports.api.useGetV1ScreenGroupsQuery, exports.usePostV1ScreenGroupsMutation = exports.api.usePostV1ScreenGroupsMutation, exports.useGetScreenGroupCampaignItemQuery = exports.api.useGetScreenGroupCampaignItemQuery, exports.useGetV1ScreenGroupsByIdQuery = exports.api.useGetV1ScreenGroupsByIdQuery, exports.usePutV1ScreenGroupsByIdMutation = exports.api.usePutV1ScreenGroupsByIdMutation, exports.useDeleteV1ScreenGroupsByIdMutation = exports.api.useDeleteV1ScreenGroupsByIdMutation, exports.useGetV1ScreenGroupsByIdCampaignsQuery = exports.api.useGetV1ScreenGroupsByIdCampaignsQuery, exports.usePutV1ScreenGroupsByIdCampaignsMutation = exports.api.usePutV1ScreenGroupsByIdCampaignsMutation, exports.useDeleteV1ScreenGroupsByIdCampaignsAndCampaignIdMutation = exports.api.useDeleteV1ScreenGroupsByIdCampaignsAndCampaignIdMutation, exports.useGetV1ScreenGroupsByIdScreensQuery = exports.api.useGetV1ScreenGroupsByIdScreensQuery, exports.useGetV1ScreensQuery = exports.api.useGetV1ScreensQuery, exports.usePostV1ScreensMutation = exports.api.usePostV1ScreensMutation, exports.useGetV1ScreensByIdQuery = exports.api.useGetV1ScreensByIdQuery, exports.usePutV1ScreensByIdMutation = exports.api.usePutV1ScreensByIdMutation, exports.useDeleteV1ScreensByIdMutation = exports.api.useDeleteV1ScreensByIdMutation, exports.usePostScreenBindKeyMutation = exports.api.usePostScreenBindKeyMutation, exports.useGetV1ScreensByIdCampaignsQuery = exports.api.useGetV1ScreensByIdCampaignsQuery, exports.usePutV1ScreensByIdCampaignsMutation = exports.api.usePutV1ScreensByIdCampaignsMutation, exports.useDeleteV1ScreensByIdCampaignsAndCampaignIdMutation = exports.api.useDeleteV1ScreensByIdCampaignsAndCampaignIdMutation, exports.useGetV1ScreensByIdRegionsAndRegionIdPlaylistsQuery = exports.api.useGetV1ScreensByIdRegionsAndRegionIdPlaylistsQuery, exports.usePutPlaylistScreenRegionItemMutation = exports.api.usePutPlaylistScreenRegionItemMutation, exports.useDeletePlaylistScreenRegionItemMutation = exports.api.useDeletePlaylistScreenRegionItemMutation, exports.useGetV1ScreensByIdScreenGroupsQuery = exports.api.useGetV1ScreensByIdScreenGroupsQuery, exports.usePutV1ScreensByIdScreenGroupsMutation = exports.api.usePutV1ScreensByIdScreenGroupsMutation, exports.useDeleteV1ScreensByIdScreenGroupsAndScreenGroupIdMutation = exports.api.useDeleteV1ScreensByIdScreenGroupsAndScreenGroupIdMutation, exports.usePostScreenUnbindMutation = exports.api.usePostScreenUnbindMutation, exports.useGetV1SlidesQuery = exports.api.useGetV1SlidesQuery, exports.usePostV1SlidesMutation = exports.api.usePostV1SlidesMutation, exports.useGetV1SlidesByIdQuery = exports.api.useGetV1SlidesByIdQuery, exports.usePutV1SlidesByIdMutation = exports.api.usePutV1SlidesByIdMutation, exports.useDeleteV1SlidesByIdMutation = exports.api.useDeleteV1SlidesByIdMutation, exports.useGetV1SlidesByIdPlaylistsQuery = exports.api.useGetV1SlidesByIdPlaylistsQuery, exports.usePutV1SlidesByIdPlaylistsMutation = exports.api.usePutV1SlidesByIdPlaylistsMutation, exports.useGetV1TemplatesQuery = exports.api.useGetV1TemplatesQuery, exports.useGetV1TemplatesByIdQuery = exports.api.useGetV1TemplatesByIdQuery, exports.useGetV1TenantsQuery = exports.api.useGetV1TenantsQuery, exports.useGetV1TenantsByIdQuery = exports.api.useGetV1TenantsByIdQuery, exports.useGetV1ThemesQuery = exports.api.useGetV1ThemesQuery, exports.usePostV1ThemesMutation = exports.api.usePostV1ThemesMutation, exports.useGetV1ThemesByIdQuery = exports.api.useGetV1ThemesByIdQuery, exports.usePutV1ThemesByIdMutation = exports.api.usePutV1ThemesByIdMutation, exports.useDeleteV1ThemesByIdMutation = exports.api.useDeleteV1ThemesByIdMutation, exports.useGetV1UserActivationCodesQuery = exports.api.useGetV1UserActivationCodesQuery, exports.usePostV1UserActivationCodesMutation = exports.api.usePostV1UserActivationCodesMutation, exports.usePostV1UserActivationCodesActivateMutation = exports.api.usePostV1UserActivationCodesActivateMutation, exports.usePostV1UserActivationCodesRefreshMutation = exports.api.usePostV1UserActivationCodesRefreshMutation, exports.useGetV1UserActivationCodesByIdQuery = exports.api.useGetV1UserActivationCodesByIdQuery, exports.useDeleteV1UserActivationCodesByIdMutation = exports.api.useDeleteV1UserActivationCodesByIdMutation, exports.useGetV1UsersQuery = exports.api.useGetV1UsersQuery, exports.usePostV1UsersMutation = exports.api.usePostV1UsersMutation, exports.useGetV1UsersByIdQuery = exports.api.useGetV1UsersByIdQuery, exports.usePutV1UsersByIdMutation = exports.api.usePutV1UsersByIdMutation, exports.useDeleteV1UsersByIdMutation = exports.api.useDeleteV1UsersByIdMutation, exports.useDeleteV1UsersByIdRemoveFromTenantMutation = exports.api.useDeleteV1UsersByIdRemoveFromTenantMutation; diff --git a/src/redux/api/api.generated.ts b/src/redux/api/api.generated.ts index 49fb99d3..ee9431e3 100644 --- a/src/redux/api/api.generated.ts +++ b/src/redux/api/api.generated.ts @@ -713,7 +713,17 @@ export const api = createApi({ query: (queryArg) => ({ url: `/v1/user-activation-codes/activate`, method: "POST", - body: queryArg.userActivationCodeUserActivateInput, + body: queryArg.userActivationCodeActivationCode, + }), + }), + postV1UserActivationCodesRefresh: build.mutation< + PostV1UserActivationCodesRefreshApiResponse, + PostV1UserActivationCodesRefreshApiArg + >({ + query: (queryArg) => ({ + url: `/v1/user-activation-codes/refresh`, + method: "POST", + body: queryArg.userActivationCodeActivationCode, }), }), getV1UserActivationCodesById: build.query< @@ -733,20 +743,7 @@ export const api = createApi({ method: "DELETE", }), }), - postV1UserActivationCodesByIdRefreshCode: build.mutation< - PostV1UserActivationCodesByIdRefreshCodeApiResponse, - PostV1UserActivationCodesByIdRefreshCodeApiArg - >({ - query: (queryArg) => ({ - url: `/v1/user-activation-codes/${queryArg.id}/refresh-code`, - method: "POST", - body: queryArg.userActivationCodeEmptyDto, - }), - }), - apiV1UsersGetCollection: build.query< - ApiV1UsersGetCollectionApiResponse, - ApiV1UsersGetCollectionApiArg - >({ + getV1Users: build.query({ query: (queryArg) => ({ url: `/v1/users`, params: { @@ -760,25 +757,22 @@ export const api = createApi({ }, }), }), - apiV1UsersPost: build.mutation< - ApiV1UsersPostApiResponse, - ApiV1UsersPostApiArg - >({ + postV1Users: build.mutation({ query: (queryArg) => ({ url: `/v1/users`, method: "POST", body: queryArg.userUserInput, }), }), - apiV1UsersIdGet: build.query< - ApiV1UsersIdGetApiResponse, - ApiV1UsersIdGetApiArg + getV1UsersById: build.query< + GetV1UsersByIdApiResponse, + GetV1UsersByIdApiArg >({ query: (queryArg) => ({ url: `/v1/users/${queryArg.id}` }), }), - apiV1UsersIdPut: build.mutation< - ApiV1UsersIdPutApiResponse, - ApiV1UsersIdPutApiArg + putV1UsersById: build.mutation< + PutV1UsersByIdApiResponse, + PutV1UsersByIdApiArg >({ query: (queryArg) => ({ url: `/v1/users/${queryArg.id}`, @@ -786,18 +780,18 @@ export const api = createApi({ body: queryArg.userUserInput, }), }), - apiV1UsersIdDelete: build.mutation< - ApiV1UsersIdDeleteApiResponse, - ApiV1UsersIdDeleteApiArg + deleteV1UsersById: build.mutation< + DeleteV1UsersByIdApiResponse, + DeleteV1UsersByIdApiArg >({ query: (queryArg) => ({ url: `/v1/users/${queryArg.id}`, method: "DELETE", }), }), - apiUsersIdremoveFromTenant: build.mutation< - ApiUsersIdremoveFromTenantApiResponse, - ApiUsersIdremoveFromTenantApiArg + deleteV1UsersByIdRemoveFromTenant: build.mutation< + DeleteV1UsersByIdRemoveFromTenantApiResponse, + DeleteV1UsersByIdRemoveFromTenantApiArg >({ query: (queryArg) => ({ url: `/v1/users/${queryArg.id}/remove-from-tenant`, @@ -1360,11 +1354,16 @@ export type PostV1UserActivationCodesApiArg = { export type PostV1UserActivationCodesActivateApiResponse = unknown; export type PostV1UserActivationCodesActivateApiArg = { /** The new UserActivationCode resource */ - userActivationCodeUserActivateInput: UserActivationCodeUserActivateInput; + userActivationCodeActivationCode: UserActivationCodeActivationCode; +}; +export type PostV1UserActivationCodesRefreshApiResponse = unknown; +export type PostV1UserActivationCodesRefreshApiArg = { + /** The new UserActivationCode resource */ + userActivationCodeActivationCode: UserActivationCodeActivationCode; }; export type GetV1UserActivationCodesByIdApiResponse = unknown; export type GetV1UserActivationCodesByIdApiArg = { - /** UserActivationCodeOutput identifier */ + /** UserActivationCode identifier */ id: string; }; export type DeleteV1UserActivationCodesByIdApiResponse = unknown; @@ -1372,19 +1371,11 @@ export type DeleteV1UserActivationCodesByIdApiArg = { /** UserActivationCode identifier */ id: string; }; -export type PostV1UserActivationCodesByIdRefreshCodeApiResponse = unknown; -export type PostV1UserActivationCodesByIdRefreshCodeApiArg = { - /** UserActivationCode identifier */ - id: string; - /** The new UserActivationCode resource */ - userActivationCodeEmptyDto: UserActivationCodeEmptyDto; -}; -export type ApiV1UsersGetCollectionApiResponse = unknown; -export type ApiV1UsersGetCollectionApiArg = { - /** The collection page number */ +export type GetV1UsersApiResponse = unknown; +export type GetV1UsersApiArg = { page?: number; /** The number of items per page */ - itemsPerPage?: number; + itemsPerPage?: string; fullName?: string; email?: string; createdBy?: { @@ -1397,31 +1388,28 @@ export type ApiV1UsersGetCollectionApiArg = { createdAt?: "asc" | "desc"; }; }; -export type ApiV1UsersPostApiResponse = unknown; -export type ApiV1UsersPostApiArg = { +export type PostV1UsersApiResponse = unknown; +export type PostV1UsersApiArg = { + id: string; /** The new User resource */ userUserInput: UserUserInput; }; -export type ApiV1UsersIdGetApiResponse = unknown; -export type ApiV1UsersIdGetApiArg = { - /** UserOutput identifier */ +export type GetV1UsersByIdApiResponse = unknown; +export type GetV1UsersByIdApiArg = { id: string; }; -export type ApiV1UsersIdPutApiResponse = unknown; -export type ApiV1UsersIdPutApiArg = { - /** User identifier */ +export type PutV1UsersByIdApiResponse = unknown; +export type PutV1UsersByIdApiArg = { id: string; /** The updated User resource */ userUserInput: UserUserInput; }; -export type ApiV1UsersIdDeleteApiResponse = unknown; -export type ApiV1UsersIdDeleteApiArg = { - /** User identifier */ +export type DeleteV1UsersByIdApiResponse = unknown; +export type DeleteV1UsersByIdApiArg = { id: string; }; -export type ApiUsersIdremoveFromTenantApiResponse = unknown; -export type ApiUsersIdremoveFromTenantApiArg = { - /** User identifier */ +export type DeleteV1UsersByIdRemoveFromTenantApiResponse = unknown; +export type DeleteV1UsersByIdRemoveFromTenantApiArg = { id: string; }; export type Token = { @@ -1501,10 +1489,9 @@ export type UserActivationCodeUserActivationCodeInput = { displayName?: string; roles?: string[]; }; -export type UserActivationCodeUserActivateInput = { +export type UserActivationCodeActivationCode = { activationCode?: string; }; -export type UserActivationCodeEmptyDto = object; export type UserUserInput = { fullName?: any; }; @@ -1581,14 +1568,14 @@ export const { useGetV1UserActivationCodesQuery, usePostV1UserActivationCodesMutation, usePostV1UserActivationCodesActivateMutation, + usePostV1UserActivationCodesRefreshMutation, useGetV1UserActivationCodesByIdQuery, useDeleteV1UserActivationCodesByIdMutation, - usePostV1UserActivationCodesByIdRefreshCodeMutation, - useApiV1UsersGetCollectionQuery, - useApiV1UsersPostMutation, - useApiV1UsersIdGetQuery, - useApiV1UsersIdPutMutation, - useApiV1UsersIdDeleteMutation, - useApiUsersIdremoveFromTenantMutation, + useGetV1UsersQuery, + usePostV1UsersMutation, + useGetV1UsersByIdQuery, + usePutV1UsersByIdMutation, + useDeleteV1UsersByIdMutation, + useDeleteV1UsersByIdRemoveFromTenantMutation, } = api; diff --git a/src/redux/api/api.json b/src/redux/api/api.json index 57644028..0c686074 100755 --- a/src/redux/api/api.json +++ b/src/redux/api/api.json @@ -5847,17 +5847,17 @@ "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/Theme.jsonld" + "$ref": "#/components/schemas/Theme.Theme.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/Theme" + "$ref": "#/components/schemas/Theme.Theme" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/Theme" + "$ref": "#/components/schemas/Theme.Theme" } } }, @@ -5948,17 +5948,17 @@ "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/Theme.jsonld" + "$ref": "#/components/schemas/Theme.Theme.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/Theme" + "$ref": "#/components/schemas/Theme.Theme" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/Theme" + "$ref": "#/components/schemas/Theme.Theme" } } }, @@ -6071,7 +6071,7 @@ "hydra:member": { "type": "array", "items": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput.jsonld" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode.jsonld" } }, "hydra:totalItems": { @@ -6161,7 +6161,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" } } }, @@ -6169,7 +6169,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" } } } @@ -6215,7 +6215,7 @@ "deprecated": false }, "post": { - "operationId": "api_v1user-activation-codes_post", + "operationId": "post-v1-create-user-activation-code", "tags": [ "UserActivationCode" ], @@ -6225,17 +6225,17 @@ "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput.jsonld" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" } } }, @@ -6248,8 +6248,8 @@ "description": "Unprocessable entity" } }, - "summary": "Creates a UserActivationCode resource.", - "description": "Creates a UserActivationCode resource.", + "summary": "Create user activation code.", + "description": "Create user activation code", "parameters": [], "requestBody": { "description": "The new UserActivationCode resource", @@ -6278,7 +6278,7 @@ }, "/v1/user-activation-codes/activate": { "post": { - "operationId": "api_user-activation-codesactivate", + "operationId": "post-v1-activate-user-activation-code", "tags": [ "UserActivationCode" ], @@ -6288,17 +6288,17 @@ "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput.jsonld" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" } } }, @@ -6311,25 +6311,88 @@ "description": "Unprocessable entity" } }, - "summary": "Creates a UserActivationCode resource.", - "description": "Creates a UserActivationCode resource.", + "summary": "Use user activation code.", + "description": "Use user activation code.", "parameters": [], "requestBody": { "description": "The new UserActivationCode resource", "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivateInput.jsonld" + "$ref": "#/components/schemas/UserActivationCode.ActivationCode.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivateInput" + "$ref": "#/components/schemas/UserActivationCode.ActivationCode" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivateInput" + "$ref": "#/components/schemas/UserActivationCode.ActivationCode" + } + } + }, + "required": true + }, + "deprecated": false + }, + "parameters": [] + }, + "/v1/user-activation-codes/refresh": { + "post": { + "operationId": "post-v1-refresh-user-activation-code", + "tags": [ + "UserActivationCode" + ], + "responses": { + "201": { + "description": "UserActivationCode resource created", + "content": { + "application/ld+json": { + "schema": { + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode.jsonld" + } + }, + "text/html": { + "schema": { + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" + } + }, + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/UserActivationCode.UserActivationCode" + } + } + }, + "links": {} + }, + "400": { + "description": "Invalid input" + }, + "422": { + "description": "Unprocessable entity" + } + }, + "summary": "Refresh user activation code.", + "description": "Refresh user activation code.", + "parameters": [], + "requestBody": { + "description": "The new UserActivationCode resource", + "content": { + "application/ld+json": { + "schema": { + "$ref": "#/components/schemas/UserActivationCode.ActivationCode.jsonld" + } + }, + "text/html": { + "schema": { + "$ref": "#/components/schemas/UserActivationCode.ActivationCode" + } + }, + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/UserActivationCode.ActivationCode" } } }, @@ -6343,25 +6406,25 @@ "get": { "operationId": "api_v1user-activation-codes_id_get", "tags": [ - "UserActivationCodeOutput" + "UserActivationCode" ], "responses": { "200": { - "description": "UserActivationCodeOutput resource", + "description": "UserActivationCode resource", "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/UserActivationCodeOutput.jsonld" + "$ref": "#/components/schemas/UserActivationCode.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/UserActivationCodeOutput" + "$ref": "#/components/schemas/UserActivationCode" } } } @@ -6370,13 +6433,13 @@ "description": "Resource not found" } }, - "summary": "Retrieves a UserActivationCodeOutput resource.", - "description": "Retrieves a UserActivationCodeOutput resource.", + "summary": "Retrieves a UserActivationCode resource.", + "description": "Retrieves a UserActivationCode resource.", "parameters": [ { "name": "id", "in": "path", - "description": "UserActivationCodeOutput identifier", + "description": "UserActivationCode identifier", "required": true, "deprecated": false, "allowEmptyValue": false, @@ -6425,218 +6488,37 @@ }, "parameters": [] }, - "/v1/user-activation-codes/{id}/refresh-code": { - "post": { - "operationId": "api_user-activation-codesrefresh_code", - "tags": [ - "UserActivationCode" - ], - "responses": { - "201": { - "description": "UserActivationCode resource created", - "content": { - "application/ld+json": { - "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput.jsonld" - } - }, - "text/html": { - "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" - } - }, - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/UserActivationCode.UserActivationCodeOutput" - } - } - }, - "links": {} - }, - "400": { - "description": "Invalid input" - }, - "422": { - "description": "Unprocessable entity" - } - }, - "summary": "Creates a UserActivationCode resource.", - "description": "Creates a UserActivationCode resource.", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "UserActivationCode identifier", - "required": true, - "deprecated": false, - "allowEmptyValue": false, - "schema": { - "type": "string" - }, - "style": "simple", - "explode": false, - "allowReserved": false - } - ], - "requestBody": { - "description": "The new UserActivationCode resource", - "content": { - "application/ld+json": { - "schema": { - "$ref": "#/components/schemas/UserActivationCode.EmptyDTO.jsonld" - } - }, - "text/html": { - "schema": { - "$ref": "#/components/schemas/UserActivationCode.EmptyDTO" - } - }, - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/UserActivationCode.EmptyDTO" - } - } - }, - "required": true - }, - "deprecated": false - }, - "parameters": [] - }, "/v1/users": { "get": { - "operationId": "api_v1users_get_collection", + "operationId": "get-v1-users", "tags": [ "User" ], "responses": { "200": { - "description": "User collection", + "description": "OK", "content": { "application/ld+json": { - "schema": { - "type": "object", - "properties": { - "hydra:member": { - "type": "array", - "items": { - "$ref": "#/components/schemas/User.UserOutput.jsonld" - } - }, - "hydra:totalItems": { - "type": "integer", - "minimum": 0 - }, - "hydra:view": { - "type": "object", - "properties": { - "@id": { - "type": "string", - "format": "iri-reference" - }, - "@type": { - "type": "string" - }, - "hydra:first": { - "type": "string", - "format": "iri-reference" - }, - "hydra:last": { - "type": "string", - "format": "iri-reference" - }, - "hydra:previous": { - "type": "string", - "format": "iri-reference" - }, - "hydra:next": { - "type": "string", - "format": "iri-reference" - } - }, - "example": { - "@id": "string", - "type": "string", - "hydra:first": "string", - "hydra:last": "string", - "hydra:previous": "string", - "hydra:next": "string" - } - }, - "hydra:search": { - "type": "object", - "properties": { - "@type": { - "type": "string" - }, - "hydra:template": { - "type": "string" - }, - "hydra:variableRepresentation": { - "type": "string" - }, - "hydra:mapping": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string" - }, - "variable": { - "type": "string" - }, - "property": { - "type": [ - "string", - "null" - ] - }, - "required": { - "type": "boolean" - } - } - } - } - } - } - }, - "required": [ - "hydra:member" - ] - } - }, - "text/html": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/User.UserOutput" - } - } - }, - "multipart/form-data": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/User.UserOutput" - } - } + "examples": null } - } + }, + "headers": [] } }, - "summary": "Retrieves the collection of User resources.", - "description": "Retrieves the collection of User resources.", + "summary": "Retrieve a collection of User resources.", + "description": "Retrieve a collection of User resources.", "parameters": [ { "name": "page", "in": "query", - "description": "The collection page number", + "description": "", "required": false, "deprecated": false, - "allowEmptyValue": true, + "allowEmptyValue": false, "schema": { "type": "integer", + "minimum": 0, + "format": "int32", "default": 1 }, "style": "form", @@ -6649,12 +6531,10 @@ "description": "The number of items per page", "required": false, "deprecated": false, - "allowEmptyValue": true, + "allowEmptyValue": false, "schema": { - "type": "integer", - "default": 10, - "minimum": 0, - "maximum": 30 + "type": "string", + "default": "10" }, "style": "form", "explode": false, @@ -6772,7 +6652,7 @@ "deprecated": false }, "post": { - "operationId": "api_v1users_post", + "operationId": "post-v1-user", "tags": [ "User" ], @@ -6782,17 +6662,17 @@ "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/User.UserOutput.jsonld" + "$ref": "#/components/schemas/User.User.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/User.UserOutput" + "$ref": "#/components/schemas/User.User" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/User.UserOutput" + "$ref": "#/components/schemas/User.User" } } }, @@ -6805,18 +6685,35 @@ "description": "Unprocessable entity" } }, - "summary": "Creates a User resource.", - "description": "Creates a User resource.", - "parameters": [], - "requestBody": { - "description": "The new User resource", - "content": { - "application/ld+json": { - "schema": { - "$ref": "#/components/schemas/User.UserInput.jsonld" - } - }, - "text/html": { + "summary": "Create a User resource.", + "description": "Create a User resource.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string", + "format": "ulid", + "pattern": "^[A-Za-z0-9]{26}$" + }, + "style": "simple", + "explode": false, + "allowReserved": false + } + ], + "requestBody": { + "description": "The new User resource", + "content": { + "application/ld+json": { + "schema": { + "$ref": "#/components/schemas/User.UserInput.jsonld" + } + }, + "text/html": { "schema": { "$ref": "#/components/schemas/User.UserInput" } @@ -6835,47 +6732,35 @@ }, "/v1/users/{id}": { "get": { - "operationId": "api_v1users_id_get", + "operationId": "get-v1-user-id", "tags": [ - "UserOutput" + "User" ], "responses": { "200": { - "description": "UserOutput resource", + "description": "OK", "content": { "application/ld+json": { - "schema": { - "$ref": "#/components/schemas/UserOutput.jsonld" - } - }, - "text/html": { - "schema": { - "$ref": "#/components/schemas/UserOutput" - } - }, - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/UserOutput" - } + "examples": null } - } - }, - "404": { - "description": "Resource not found" + }, + "headers": [] } }, - "summary": "Retrieves a UserOutput resource.", - "description": "Retrieves a UserOutput resource.", + "summary": "Retrieve User resource.", + "description": "Retrieves User resource.", "parameters": [ { "name": "id", "in": "path", - "description": "UserOutput identifier", + "description": "", "required": true, "deprecated": false, "allowEmptyValue": false, "schema": { - "type": "string" + "type": "string", + "format": "ulid", + "pattern": "^[A-Za-z0-9]{26}$" }, "style": "simple", "explode": false, @@ -6885,7 +6770,7 @@ "deprecated": false }, "put": { - "operationId": "api_v1users_id_put", + "operationId": "put-v1-user-id", "tags": [ "User" ], @@ -6895,17 +6780,17 @@ "content": { "application/ld+json": { "schema": { - "$ref": "#/components/schemas/User.UserOutput.jsonld" + "$ref": "#/components/schemas/User.User.jsonld" } }, "text/html": { "schema": { - "$ref": "#/components/schemas/User.UserOutput" + "$ref": "#/components/schemas/User.User" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/User.UserOutput" + "$ref": "#/components/schemas/User.User" } } }, @@ -6921,18 +6806,20 @@ "description": "Resource not found" } }, - "summary": "Replaces the User resource.", - "description": "Replaces the User resource.", + "summary": "Update User resource.", + "description": "Update User resource.", "parameters": [ { "name": "id", "in": "path", - "description": "User identifier", + "description": "", "required": true, "deprecated": false, "allowEmptyValue": false, "schema": { - "type": "string" + "type": "string", + "format": "ulid", + "pattern": "^[A-Za-z0-9]{26}$" }, "style": "simple", "explode": false, @@ -6963,7 +6850,7 @@ "deprecated": false }, "delete": { - "operationId": "api_v1users_id_delete", + "operationId": "delete-v1-user-id", "tags": [ "User" ], @@ -6975,18 +6862,20 @@ "description": "Resource not found" } }, - "summary": "Removes the User resource.", - "description": "Removes the User resource.", + "summary": "Delete an User resource.", + "description": "Delete an User resource.", "parameters": [ { "name": "id", "in": "path", - "description": "User identifier", + "description": "", "required": true, "deprecated": false, "allowEmptyValue": false, "schema": { - "type": "string" + "type": "string", + "format": "ulid", + "pattern": "^[A-Za-z0-9]{26}$" }, "style": "simple", "explode": false, @@ -6999,30 +6888,29 @@ }, "/v1/users/{id}/remove-from-tenant": { "delete": { - "operationId": "api_users_idremove_from_tenant", + "operationId": "post-v1-remove-user-from-tenant", "tags": [ "User" ], "responses": { "204": { - "description": "User resource deleted" - }, - "404": { - "description": "Resource not found" + "description": "User removed from tenant" } }, - "summary": "Removes the User resource.", - "description": "Removes the User resource.", + "summary": "Remove a User resource from the current tenant.", + "description": "Remove a User resource from the current tenant.", "parameters": [ { "name": "id", "in": "path", - "description": "User identifier", + "description": "", "required": true, "deprecated": false, "allowEmptyValue": false, "schema": { - "type": "string" + "type": "string", + "format": "ulid", + "pattern": "^[A-Za-z0-9]{26}$" }, "style": "simple", "explode": false, @@ -7203,22 +7091,17 @@ } }, "slide": { - "type": [ - "string", - "null" - ] + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "feedSource": { - "type": [ - "string", - "null" - ] + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "feedUrl": { - "type": [ - "string", - "null" - ] + "type": "string" }, "modifiedBy": { "type": "string" @@ -7226,6 +7109,10 @@ "createdBy": { "type": "string" }, + "id": { + "type": "string", + "format": "ulid" + }, "created": { "type": "string", "format": "date-time" @@ -7233,6 +7120,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -7286,22 +7176,17 @@ } }, "slide": { - "type": [ - "string", - "null" - ] + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "feedSource": { - "type": [ - "string", - "null" - ] + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "feedUrl": { - "type": [ - "string", - "null" - ] + "type": "string" }, "modifiedBy": { "type": "string" @@ -7309,6 +7194,10 @@ "createdBy": { "type": "string" }, + "id": { + "type": "string", + "format": "ulid" + }, "created": { "type": "string", "format": "date-time" @@ -7316,6 +7205,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -7670,6 +7562,62 @@ } } }, + "Media-playlist-slide.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "license": { + "type": "string" + }, + "assets": { + "type": "array", + "items": { + "type": "string" + } + }, + "thumbnail": { + "type": [ + "string", + "null" + ] + } + } + }, + "Media-theme.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "license": { + "type": "string" + }, + "assets": { + "type": "array", + "items": { + "type": "string" + } + }, + "thumbnail": { + "type": [ + "string", + "null" + ] + } + } + }, "Media.Media": { "type": "object", "description": "", @@ -7887,6 +7835,62 @@ } } }, + "Media.jsonld-playlist-slide.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "license": { + "type": "string" + }, + "assets": { + "type": "array", + "items": { + "type": "string" + } + }, + "thumbnail": { + "type": [ + "string", + "null" + ] + } + } + }, + "Media.jsonld-theme.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "license": { + "type": "string" + }, + "assets": { + "type": "array", + "items": { + "type": "string" + } + }, + "thumbnail": { + "type": [ + "string", + "null" + ] + } + } + }, "Playlist": { "type": "object", "description": "", @@ -7899,7 +7903,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -7908,13 +7915,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -7950,6 +7978,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -7965,22 +7996,46 @@ "type": "string" }, "schedules": { - "type": "array", - "items": { - "type": "string" + "type": [ + "array", + "null" + ], + "items": { + "type": "string" } }, "slides": { "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection-campaigns.screen-groups.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-campaigns.screen-groups.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection-campaigns.screen-groups.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-campaigns.screen-groups.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection-campaigns.screen-groups.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-campaigns.screen-groups.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8013,7 +8068,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8022,13 +8080,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection-campaigns.screens.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-campaigns.screens.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection-campaigns.screens.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-campaigns.screens.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection-campaigns.screens.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-campaigns.screens.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8061,7 +8140,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8070,13 +8152,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection-playlist-screen-region.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-playlist-screen-region.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection-playlist-screen-region.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-playlist-screen-region.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection-playlist-screen-region.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-playlist-screen-region.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8109,7 +8212,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8118,13 +8224,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection-screen-campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-screen-campaigns.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection-screen-campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-screen-campaigns.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection-screen-campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-screen-campaigns.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8157,7 +8284,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8166,13 +8296,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection-screen-groups.campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-screen-groups.campaigns.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection-screen-groups.campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-screen-groups.campaigns.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection-screen-groups.campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-screen-groups.campaigns.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8205,7 +8356,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8214,13 +8368,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection-slides.playlists.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-slides.playlists.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection-slides.playlists.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-slides.playlists.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection-slides.playlists.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection-slides.playlists.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8253,7 +8428,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8262,13 +8440,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8304,6 +8503,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -8354,7 +8556,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8363,13 +8568,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8405,6 +8631,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -8539,7 +8768,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8548,13 +8780,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8590,6 +8843,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -8605,7 +8861,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8614,13 +8873,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld-campaigns.screen-groups.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-campaigns.screen-groups.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld-campaigns.screen-groups.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-campaigns.screen-groups.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld-campaigns.screen-groups.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-campaigns.screen-groups.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8653,7 +8933,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8662,13 +8945,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld-campaigns.screens.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-campaigns.screens.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld-campaigns.screens.read" - }, - "tenants": { - "$ref": "#/components/schemas/Collection.jsonld-campaigns.screens.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-campaigns.screens.read" + }, + { + "type": "null" + } + ] + }, + "tenants": { + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-campaigns.screens.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8701,7 +9005,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8710,13 +9017,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld-playlist-screen-region.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-playlist-screen-region.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld-playlist-screen-region.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-playlist-screen-region.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld-playlist-screen-region.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-playlist-screen-region.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8749,7 +9077,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8758,13 +9089,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld-screen-campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-screen-campaigns.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld-screen-campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-screen-campaigns.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld-screen-campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-screen-campaigns.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8797,7 +9149,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8806,13 +9161,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld-screen-groups.campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-screen-groups.campaigns.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld-screen-groups.campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-screen-groups.campaigns.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld-screen-groups.campaigns.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-screen-groups.campaigns.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8845,7 +9221,10 @@ "type": "string" }, "schedules": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } @@ -8854,13 +9233,34 @@ "type": "string" }, "campaignScreens": { - "$ref": "#/components/schemas/Collection.jsonld-slides.playlists.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-slides.playlists.read" + }, + { + "type": "null" + } + ] }, "campaignScreenGroups": { - "$ref": "#/components/schemas/Collection.jsonld-slides.playlists.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-slides.playlists.read" + }, + { + "type": "null" + } + ] }, "tenants": { - "$ref": "#/components/schemas/Collection.jsonld-slides.playlists.read" + "anyOf": [ + { + "$ref": "#/components/schemas/Collection.jsonld-slides.playlists.read" + }, + { + "type": "null" + } + ] }, "isCampaign": { "type": "boolean" @@ -8897,6 +9297,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -8930,6 +9333,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -8998,6 +9404,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -9074,6 +9483,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -9120,6 +9532,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -9182,6 +9597,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -9279,6 +9697,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -9392,6 +9813,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -9518,6 +9942,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -9644,6 +10071,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -9751,6 +10181,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -9926,6 +10359,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10015,6 +10451,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10081,6 +10520,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10182,6 +10624,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10299,6 +10744,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10383,6 +10831,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10482,6 +10933,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10578,6 +11032,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10718,6 +11175,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -10819,6 +11279,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -10870,6 +11333,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -10956,6 +11422,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -11058,6 +11527,9 @@ "id": { "type": "string", "format": "ulid" + }, + "relationsModified": { + "type": "object" } } }, @@ -11143,6 +11615,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11182,6 +11657,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11256,6 +11734,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11330,6 +11811,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11349,6 +11833,10 @@ }, "type": { "type": "string" + }, + "id": { + "type": "string", + "format": "ulid" } } }, @@ -11403,6 +11891,10 @@ }, "type": { "type": "string" + }, + "id": { + "type": "string", + "format": "ulid" } } }, @@ -11432,7 +11924,9 @@ } }, "theme": { - "type": "string" + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "onPlaylists": { "$ref": "#/components/schemas/Collection" @@ -11492,6 +11986,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11521,7 +12018,8 @@ } }, "theme": { - "type": "string" + "owl:maxCardinality": 1, + "$ref": "#/components/schemas/Theme-playlist-slide.read" }, "onPlaylists": { "$ref": "#/components/schemas/Collection-playlist-slide.read" @@ -11583,7 +12081,9 @@ } }, "theme": { - "type": "string" + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "onPlaylists": { "$ref": "#/components/schemas/Collection" @@ -11643,6 +12143,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11707,7 +12210,9 @@ } }, "theme": { - "type": "string" + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "onPlaylists": { "$ref": "#/components/schemas/Collection.jsonld" @@ -11767,6 +12272,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -11993,7 +12501,9 @@ } }, "theme": { - "type": "string" + "owl:maxCardinality": 1, + "type": "string", + "format": "iri-reference" }, "onPlaylists": { "$ref": "#/components/schemas/Collection.jsonld" @@ -12053,6 +12563,9 @@ "modified": { "type": "string", "format": "date-time" + }, + "relationsModified": { + "type": "object" } } }, @@ -12082,7 +12595,8 @@ } }, "theme": { - "type": "string" + "owl:maxCardinality": 1, + "$ref": "#/components/schemas/Theme.jsonld-playlist-slide.read" }, "onPlaylists": { "$ref": "#/components/schemas/Collection.jsonld-playlist-slide.read" @@ -12471,13 +12985,70 @@ } } }, - "Theme": { + "Theme-playlist-slide.read": { "type": "object", "description": "", "deprecated": false, "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "logo": { + "owl:maxCardinality": 1, + "anyOf": [ + { + "$ref": "#/components/schemas/Media-playlist-slide.read" + }, + { + "type": "null" + } + ] + }, "cssStyles": { "type": "string" + } + } + }, + "Theme-theme.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "logo": { + "owl:maxCardinality": 1, + "anyOf": [ + { + "$ref": "#/components/schemas/Media-theme.read" + }, + { + "type": "null" + } + ] + }, + "cssStyles": { + "type": "string" + } + } + }, + "Theme.Theme": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" }, "logo": { "owl:maxCardinality": 1, @@ -12487,44 +13058,191 @@ ], "format": "iri-reference" }, - "slides": { - "type": "array", - "items": { - "type": "string", - "format": "iri-reference" - } + "cssStyles": { + "type": "string" + }, + "modifiedBy": { + "type": "string" + }, + "createdBy": { + "type": "string" + }, + "id": { + "type": "string", + "format": "ulid" + }, + "created": { + "type": "string", + "format": "date-time" }, + "modified": { + "type": "string", + "format": "date-time" + } + } + }, + "Theme.Theme-theme.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { "title": { "type": "string" }, "description": { "type": "string" }, - "tenant": { + "logo": { "owl:maxCardinality": 1, - "type": "string", + "anyOf": [ + { + "$ref": "#/components/schemas/Media-theme.read" + }, + { + "type": "null" + } + ] + }, + "cssStyles": { + "type": "string" + } + } + }, + "Theme.Theme.jsonld": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "@context": { + "readOnly": true, + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "@vocab": { + "type": "string" + }, + "hydra": { + "type": "string", + "enum": [ + "http://www.w3.org/ns/hydra/core#" + ] + } + }, + "required": [ + "@vocab", + "hydra" + ], + "additionalProperties": true + } + ] + }, + "@id": { + "readOnly": true, + "type": "string" + }, + "@type": { + "readOnly": true, + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "logo": { + "owl:maxCardinality": 1, + "type": [ + "string", + "null" + ], "format": "iri-reference" }, + "cssStyles": { + "type": "string" + }, + "modifiedBy": { + "type": "string" + }, + "createdBy": { + "type": "string" + }, "id": { - "readOnly": true, - "description": "Get the Ulid.", "type": "string", "format": "ulid" }, - "createdAt": { - "readOnly": true, + "created": { "type": "string", "format": "date-time" }, - "modifiedAt": { - "readOnly": true, + "modified": { "type": "string", "format": "date-time" + } + } + }, + "Theme.Theme.jsonld-theme.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "@id": { + "readOnly": true, + "type": "string" }, - "createdBy": { + "@type": { + "readOnly": true, "type": "string" }, - "modifiedBy": { + "@context": { + "readOnly": true, + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "@vocab": { + "type": "string" + }, + "hydra": { + "type": "string", + "enum": [ + "http://www.w3.org/ns/hydra/core#" + ] + } + }, + "required": [ + "@vocab", + "hydra" + ], + "additionalProperties": true + } + ] + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "logo": { + "owl:maxCardinality": 1, + "anyOf": [ + { + "$ref": "#/components/schemas/Media.jsonld-theme.read" + }, + { + "type": "null" + } + ] + }, + "cssStyles": { "type": "string" } } @@ -12567,7 +13285,34 @@ } } }, - "Theme.jsonld": { + "Theme.jsonld-playlist-slide.read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "logo": { + "owl:maxCardinality": 1, + "anyOf": [ + { + "$ref": "#/components/schemas/Media.jsonld-playlist-slide.read" + }, + { + "type": "null" + } + ] + }, + "cssStyles": { + "type": "string" + } + } + }, + "Theme.jsonld-theme.read": { "type": "object", "description": "", "deprecated": false, @@ -12607,60 +13352,29 @@ "readOnly": true, "type": "string" }, - "cssStyles": { - "type": "string" - }, - "logo": { - "owl:maxCardinality": 1, - "type": [ - "string", - "null" - ], - "format": "iri-reference" - }, - "slides": { - "type": "array", - "items": { - "type": "string", - "format": "iri-reference" - } - }, "title": { "type": "string" }, "description": { "type": "string" }, - "tenant": { + "logo": { "owl:maxCardinality": 1, - "type": "string", - "format": "iri-reference" - }, - "id": { - "readOnly": true, - "description": "Get the Ulid.", - "type": "string", - "format": "ulid" - }, - "createdAt": { - "readOnly": true, - "type": "string", - "format": "date-time" - }, - "modifiedAt": { - "readOnly": true, - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "string" + "anyOf": [ + { + "$ref": "#/components/schemas/Media.jsonld-theme.read" + }, + { + "type": "null" + } + ] }, - "modifiedBy": { + "cssStyles": { "type": "string" } } }, - "User.UserInput": { + "User": { "type": "object", "description": "", "deprecated": false, @@ -12670,23 +13384,36 @@ "string", "null" ] - } - } - }, - "User.UserInput.jsonld": { - "type": "object", - "description": "", - "deprecated": false, - "properties": { - "fullName": { + }, + "userType": { "type": [ "string", "null" + ], + "enum": [ + "OIDC_EXTERNAL", + "OIDC_INTERNAL", + "USERNAME_PASSWORD", + null ] + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string", + "format": "ulid" } } }, - "User.UserOutput": { + "User.User": { "type": "object", "description": "", "deprecated": false, @@ -12725,7 +13452,7 @@ } } }, - "User.UserOutput.jsonld": { + "User.User.jsonld": { "type": "object", "description": "", "deprecated": false, @@ -12799,122 +13526,33 @@ } } }, - "UserActivationCode.EmptyDTO": { - "type": "object", - "description": "", - "deprecated": false - }, - "UserActivationCode.EmptyDTO.jsonld": { - "type": "object", - "description": "", - "deprecated": false - }, - "UserActivationCode.UserActivateInput": { - "type": "object", - "description": "", - "deprecated": false, - "properties": { - "activationCode": { - "type": "string" - } - } - }, - "UserActivationCode.UserActivateInput.jsonld": { - "type": "object", - "description": "", - "deprecated": false, - "properties": { - "activationCode": { - "type": "string" - } - } - }, - "UserActivationCode.UserActivationCodeInput": { - "type": "object", - "description": "", - "deprecated": false, - "properties": { - "displayName": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "UserActivationCode.UserActivationCodeInput.jsonld": { + "User.UserInput": { "type": "object", "description": "", "deprecated": false, "properties": { - "displayName": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "fullName": { + "type": [ + "string", + "null" + ] } } }, - "UserActivationCode.UserActivationCodeOutput": { + "User.UserInput.jsonld": { "type": "object", "description": "", "deprecated": false, "properties": { - "code": { - "type": [ - "string", - "null" - ] - }, - "codeExpire": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "username": { + "fullName": { "type": [ "string", "null" ] - }, - "roles": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "modifiedBy": { - "type": "string" - }, - "createdBy": { - "type": "string" - }, - "id": { - "type": "string", - "format": "ulid" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "modified": { - "type": "string", - "format": "date-time" } } }, - "UserActivationCode.UserActivationCodeOutput.jsonld": { + "User.jsonld": { "type": "object", "description": "", "deprecated": false, @@ -12954,6 +13592,45 @@ "readOnly": true, "type": "string" }, + "fullName": { + "type": [ + "string", + "null" + ] + }, + "userType": { + "type": [ + "string", + "null" + ], + "enum": [ + "OIDC_EXTERNAL", + "OIDC_INTERNAL", + "USERNAME_PASSWORD", + null + ] + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string", + "format": "ulid" + } + } + }, + "UserActivationCode": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { "code": { "type": [ "string", @@ -13002,7 +13679,27 @@ } } }, - "UserActivationCodeOutput": { + "UserActivationCode.ActivationCode": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "activationCode": { + "type": "string" + } + } + }, + "UserActivationCode.ActivationCode.jsonld": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "activationCode": { + "type": "string" + } + } + }, + "UserActivationCode.UserActivationCode": { "type": "object", "description": "", "deprecated": false, @@ -13055,7 +13752,7 @@ } } }, - "UserActivationCodeOutput.jsonld": { + "UserActivationCode.UserActivationCode.jsonld": { "type": "object", "description": "", "deprecated": false, @@ -13143,46 +13840,39 @@ } } }, - "UserOutput": { + "UserActivationCode.UserActivationCodeInput": { "type": "object", "description": "", "deprecated": false, "properties": { - "fullName": { - "type": [ - "string", - "null" - ] - }, - "userType": { - "type": [ - "string", - "null" - ], - "enum": [ - "OIDC_EXTERNAL", - "OIDC_INTERNAL", - "USERNAME_PASSWORD", - null - ] + "displayName": { + "type": "string" }, "roles": { "type": "array", "items": { "type": "string" } + } + } + }, + "UserActivationCode.UserActivationCodeInput.jsonld": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "displayName": { + "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string", - "format": "ulid" + "roles": { + "type": "array", + "items": { + "type": "string" + } } } }, - "UserOutput.jsonld": { + "UserActivationCode.jsonld": { "type": "object", "description": "", "deprecated": false, @@ -13222,37 +13912,51 @@ "readOnly": true, "type": "string" }, - "fullName": { + "code": { "type": [ "string", "null" ] }, - "userType": { + "codeExpire": { "type": [ "string", "null" ], - "enum": [ - "OIDC_EXTERNAL", - "OIDC_INTERNAL", - "USERNAME_PASSWORD", - null + "format": "date-time" + }, + "username": { + "type": [ + "string", + "null" ] }, "roles": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string" } }, - "createdAt": { - "type": "string", - "format": "date-time" + "modifiedBy": { + "type": "string" + }, + "createdBy": { + "type": "string" }, "id": { "type": "string", "format": "ulid" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "modified": { + "type": "string", + "format": "date-time" } } },