mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
feat: add required cdn events (#10040)
## About the changes Exposes configuration revision service UPDATE_EVENT constant so it can be used, and we also add a new event for cdn token created
This commit is contained in:
parent
e65865d410
commit
a302055bea
@ -213,6 +213,8 @@ export const USER_PREFERENCE_UPDATED = 'user-preference-updated' as const;
|
|||||||
export const SCIM_USERS_DELETED = 'scim-users-deleted' as const;
|
export const SCIM_USERS_DELETED = 'scim-users-deleted' as const;
|
||||||
export const SCIM_GROUPS_DELETED = 'scim-groups-deleted' as const;
|
export const SCIM_GROUPS_DELETED = 'scim-groups-deleted' as const;
|
||||||
|
|
||||||
|
export const CDN_TOKEN_CREATED = 'cdn-token-created' as const;
|
||||||
|
|
||||||
export const IEventTypes = [
|
export const IEventTypes = [
|
||||||
APPLICATION_CREATED,
|
APPLICATION_CREATED,
|
||||||
FEATURE_CREATED,
|
FEATURE_CREATED,
|
||||||
@ -373,6 +375,7 @@ export const IEventTypes = [
|
|||||||
USER_PREFERENCE_UPDATED,
|
USER_PREFERENCE_UPDATED,
|
||||||
SCIM_USERS_DELETED,
|
SCIM_USERS_DELETED,
|
||||||
SCIM_GROUPS_DELETED,
|
SCIM_GROUPS_DELETED,
|
||||||
|
CDN_TOKEN_CREATED,
|
||||||
] as const;
|
] as const;
|
||||||
export type IEventType = (typeof IEventTypes)[number];
|
export type IEventType = (typeof IEventTypes)[number];
|
||||||
|
|
||||||
|
@ -181,6 +181,7 @@ import {
|
|||||||
import { getDbConfig } from '../test/e2e/helpers/database-config.js';
|
import { getDbConfig } from '../test/e2e/helpers/database-config.js';
|
||||||
import { testDbPrefix } from '../test/e2e/helpers/database-init.js';
|
import { testDbPrefix } from '../test/e2e/helpers/database-init.js';
|
||||||
import type { RequestHandler } from 'express';
|
import type { RequestHandler } from 'express';
|
||||||
|
import { UPDATE_REVISION } from './features/feature-toggle/configuration-revision-service.js';
|
||||||
|
|
||||||
export async function initialServiceSetup(
|
export async function initialServiceSetup(
|
||||||
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
|
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
|
||||||
@ -420,6 +421,7 @@ export {
|
|||||||
CUSTOM_ROOT_ROLE_TYPE,
|
CUSTOM_ROOT_ROLE_TYPE,
|
||||||
getVariantValue,
|
getVariantValue,
|
||||||
UPDATE_DELTA,
|
UPDATE_DELTA,
|
||||||
|
UPDATE_REVISION,
|
||||||
applyGenericQueryParams,
|
applyGenericQueryParams,
|
||||||
normalizeQueryParams,
|
normalizeQueryParams,
|
||||||
parseSearchOperatorValue,
|
parseSearchOperatorValue,
|
||||||
|
Loading…
Reference in New Issue
Block a user