unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
339 lines • 18.3 kB
JavaScript
import { ADDON_CONFIG_CREATED, ADDON_CONFIG_DELETED, ADDON_CONFIG_UPDATED, API_TOKEN_CREATED, API_TOKEN_DELETED, CHANGE_ADDED, CHANGE_DISCARDED, CHANGE_EDITED, CHANGE_REQUEST_APPLIED, CHANGE_REQUEST_APPROVAL_ADDED, CHANGE_REQUEST_APPROVED, CHANGE_REQUEST_CANCELLED, CHANGE_REQUEST_CREATED, CHANGE_REQUEST_DISCARDED, CHANGE_REQUEST_REJECTED, CHANGE_REQUEST_SENT_TO_REVIEW, CONTEXT_FIELD_CREATED, CONTEXT_FIELD_DELETED, CONTEXT_FIELD_UPDATED, FEATURE_ARCHIVED, FEATURE_CREATED, FEATURE_DELETED, FEATURE_ENVIRONMENT_DISABLED, FEATURE_ENVIRONMENT_ENABLED, FEATURE_ENVIRONMENT_VARIANTS_UPDATED, FEATURE_METADATA_UPDATED, FEATURE_POTENTIALLY_STALE_ON, FEATURE_PROJECT_CHANGE, FEATURE_REVIVED, FEATURE_STALE_OFF, FEATURE_STALE_ON, FEATURE_STRATEGY_ADD, FEATURE_STRATEGY_REMOVE, FEATURE_STRATEGY_UPDATE, FEATURE_TAGGED, FEATURE_UNTAGGED, GROUP_CREATED, GROUP_DELETED, GROUP_UPDATED, BANNER_CREATED, BANNER_DELETED, BANNER_UPDATED, PROJECT_CREATED, PROJECT_DELETED, SEGMENT_CREATED, SEGMENT_DELETED, SEGMENT_UPDATED, SERVICE_ACCOUNT_CREATED, SERVICE_ACCOUNT_DELETED, SERVICE_ACCOUNT_UPDATED, USER_CREATED, USER_DELETED, USER_UPDATED, CHANGE_REQUEST_SCHEDULED, CHANGE_REQUEST_SCHEDULED_APPLICATION_SUCCESS, CHANGE_REQUEST_SCHEDULED_APPLICATION_FAILURE, CHANGE_REQUEST_SCHEDULE_SUSPENDED, FEATURE_COMPLETED, PROJECT_ARCHIVED, RELEASE_PLAN_ADDED, RELEASE_PLAN_REMOVED, RELEASE_PLAN_MILESTONE_STARTED, RELEASE_PLAN_PROGRESSIONS_PAUSED, RELEASE_PLAN_PROGRESSIONS_RESUMED, USER_ACCESS_REQUEST_REGISTERED, USER_ACCESS_REQUEST_APPROVED, USER_ACCESS_REQUEST_REJECTED, } from '../events/index.js';
export const EVENT_MAP = {
[]: {
label: 'Integration configuration created',
action: '{{b}}{{user}}{{b}} created a new {{b}}{{event.data.provider}}{{b}} integration configuration',
path: '/integrations',
},
[]: {
label: 'Integration configuration deleted',
action: '{{b}}{{user}}{{b}} deleted a {{b}}{{event.preData.provider}}{{b}} integration configuration',
path: '/integrations',
},
[]: {
label: 'Integration configuration updated',
action: '{{b}}{{user}}{{b}} updated a {{b}}{{event.preData.provider}}{{b}} integration configuration',
path: '/integrations',
},
[]: {
label: 'API token created',
action: '{{b}}{{user}}{{b}} created API token {{b}}{{event.data.username}}{{b}}',
path: '/admin/api',
},
[]: {
label: 'API token deleted',
action: '{{b}}{{user}}{{b}} deleted API token {{b}}{{event.preData.username}}{{b}}',
path: '/admin/api',
},
[]: {
label: 'Change added',
action: '{{b}}{{user}}{{b}} added a change to change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change discarded',
action: '{{b}}{{user}}{{b}} discarded a change in change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change edited',
action: '{{b}}{{user}}{{b}} edited a change in change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request applied',
action: '{{b}}{{user}}{{b}} applied change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request approval added',
action: '{{b}}{{user}}{{b}} added an approval to change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request approved',
action: '{{b}}{{user}}{{b}} approved change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request cancelled',
action: '{{b}}{{user}}{{b}} cancelled change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request created',
action: '{{b}}{{user}}{{b}} created change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request discarded',
action: '{{b}}{{user}}{{b}} discarded change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request rejected',
action: '{{b}}{{user}}{{b}} rejected change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request sent to review',
action: '{{b}}{{user}}{{b}} sent to review change request {{changeRequest}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request scheduled',
action: '{{b}}{{user}}{{b}} scheduled change request {{changeRequest}} to be applied at {{event.data.scheduledDate}}.',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Scheduled change request applied successfully',
action: '{{b}}Successfully{{b}} applied the scheduled change request {{changeRequest}} by {{b}}{{user}}{{b}}.',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Scheduled change request failed',
action: '{{b}}Failed{{b}} to apply the scheduled change request {{changeRequest}} by {{b}}{{user}}{{b}}.',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Change request suspended',
action: 'Change request {{changeRequest}} was suspended for the following reason: {{event.data.reason}}',
path: '/projects/{{event.project}}/change-requests/{{event.data.changeRequestId}}',
},
[]: {
label: 'Context field created',
action: '{{b}}{{user}}{{b}} created context field {{b}}{{event.data.name}}{{b}}',
path: '/context',
},
[]: {
label: 'Context field deleted',
action: '{{b}}{{user}}{{b}} deleted context field {{b}}{{event.preData.name}}{{b}}',
path: '/context',
},
[]: {
label: 'Context field updated',
action: '{{b}}{{user}}{{b}} updated context field {{b}}{{event.preData.name}}{{b}}',
path: '/context',
},
[]: {
label: 'Flag archived',
action: '{{b}}{{user}}{{b}} archived {{b}}{{event.featureName}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/archive',
},
[]: {
label: 'Flag created',
action: '{{b}}{{user}}{{b}} created {{b}}{{feature}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag deleted',
action: '{{b}}{{user}}{{b}} deleted {{b}}{{event.featureName}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}',
},
[]: {
label: 'Flag disabled',
action: '{{b}}{{user}}{{b}} disabled {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag enabled',
action: '{{b}}{{user}}{{b}} enabled {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag variants updated',
action: '{{b}}{{user}}{{b}} updated variants for {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}/variants',
},
[]: {
label: 'Flag metadata updated',
action: '{{b}}{{user}}{{b}} updated {{b}}{{feature}}{{b}} metadata in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag marked as completed',
action: '{{b}}{{feature}}{{b}} was marked as completed in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag potentially stale',
action: '{{b}}{{feature}}{{b}} was marked as potentially stale in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag moved to a new project',
action: '{{b}}{{user}}{{b}} moved {{b}}{{feature}}{{b}} from {{b}}{{event.data.oldProject}}{{b}} to {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag revived',
action: '{{b}}{{user}}{{b}} revived {{b}}{{feature}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag stale marking removed',
action: '{{b}}{{user}}{{b}} removed the stale marking on {{b}}{{feature}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag marked as stale',
action: '{{b}}{{user}}{{b}} marked {{b}}{{feature}}{{b}} as stale in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag strategy added',
action: '{{b}}{{user}}{{b}} added strategy {{b}}{{strategyTitle}}{{b}} to {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag strategy removed',
action: '{{b}}{{user}}{{b}} removed strategy {{b}}{{strategyTitle}}{{b}} from {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag strategy updated',
action: '{{b}}{{user}}{{b}} updated {{b}}{{feature}}{{b}} in project {{b}}{{project}}{{b}} {{strategyChangeText}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag tagged',
action: '{{b}}{{user}}{{b}} tagged {{b}}{{feature}}{{b}} with {{b}}{{event.data.type}}:{{event.data.value}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Flag untagged',
action: '{{b}}{{user}}{{b}} untagged {{b}}{{feature}}{{b}} with {{b}}{{event.preData.type}}:{{event.preData.value}}{{b}} in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Group created',
action: '{{b}}{{user}}{{b}} created group {{b}}{{event.data.name}}{{b}}',
path: '/admin/groups',
},
[]: {
label: 'Group deleted',
action: '{{b}}{{user}}{{b}} deleted group {{b}}{{event.preData.name}}{{b}}',
path: '/admin/groups',
},
[]: {
label: 'Group updated',
action: '{{b}}{{user}}{{b}} updated group {{b}}{{event.preData.name}}{{b}}',
path: '/admin/groups',
},
[]: {
label: 'Banner created',
action: '{{b}}{{user}}{{b}} created banner {{b}}{{event.data.message}}{{b}}',
path: '/admin/message-banners',
},
[]: {
label: 'Banner deleted',
action: '{{b}}{{user}}{{b}} deleted banner {{b}}{{event.preData.message}}{{b}}',
path: '/admin/message-banners',
},
[]: {
label: 'Banner updated',
action: '{{b}}{{user}}{{b}} updated banner {{b}}{{event.preData.message}}{{b}}',
path: '/admin/message-banners',
},
[]: {
label: 'Project created',
action: '{{b}}{{user}}{{b}} created project {{b}}{{project}}{{b}}',
path: '/projects',
},
[]: {
label: 'Project archived',
action: '{{b}}{{user}}{{b}} archived project {{b}}{{event.project}}{{b}}',
path: '/projects-archive',
},
[]: {
label: 'Project deleted',
action: '{{b}}{{user}}{{b}} deleted project {{b}}{{event.project}}{{b}}',
path: '/projects',
},
[]: {
label: 'Segment created',
action: '{{b}}{{user}}{{b}} created segment {{b}}{{event.data.name}}{{b}}',
path: '/segments',
},
[]: {
label: 'Segment deleted',
action: '{{b}}{{user}}{{b}} deleted segment {{b}}{{event.preData.name}}{{b}}',
path: '/segments',
},
[]: {
label: 'Segment updated',
action: '{{b}}{{user}}{{b}} updated segment {{b}}{{event.preData.name}}{{b}}',
path: '/segments',
},
[]: {
label: 'Service account created',
action: '{{b}}{{user}}{{b}} created service account {{b}}{{event.data.name}}{{b}}',
path: '/admin/service-accounts',
},
[]: {
label: 'Service account deleted',
action: '{{b}}{{user}}{{b}} deleted service account {{b}}{{event.preData.name}}{{b}}',
path: '/admin/service-accounts',
},
[]: {
label: 'Service account updated',
action: '{{b}}{{user}}{{b}} updated service account {{b}}{{event.preData.name}}{{b}}',
path: '/admin/service-accounts',
},
[]: {
label: 'User created',
action: '{{b}}{{user}}{{b}} created user {{b}}{{event.data.name}}{{b}}',
path: '/admin/users',
},
[]: {
label: 'User deleted',
action: '{{b}}{{user}}{{b}} deleted user {{b}}{{event.preData.name}}{{b}}',
path: '/admin/users',
},
[]: {
label: 'User updated',
action: '{{b}}{{user}}{{b}} updated user {{b}}{{event.preData.name}}{{b}}',
path: '/admin/users',
},
[]: {
label: 'Release plan added',
action: '{{b}}{{user}}{{b}} added release plan {{b}}{{event.data.name}}{{b}} to {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Release plan removed',
action: '{{b}}{{user}}{{b}} removed release plan {{b}}{{event.preData.name}}{{b}} from {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Release plan milestone started',
action: '{{b}}{{user}}{{b}} started milestone {{b}}{{event.data.milestoneName}}{{b}} in release plan {{b}}{{event.data.name}}{{b}} for {{b}}{{feature}}{{b}} for the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Release plan progressions paused',
action: '{{b}}Release plan progressions paused{{b}} by safeguard for {{b}}{{feature}}{{b}} in the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'Release plan progressions resumed',
action: '{{b}}{{user}}{{b}} resumed release plan progressions for {{b}}{{feature}}{{b}} in the {{b}}{{event.environment}}{{b}} environment in project {{b}}{{project}}{{b}}',
path: '/projects/{{event.project}}/features/{{event.featureName}}',
},
[]: {
label: 'User access request registered',
action: '{{b}}{{event.data.email}}{{b}} requested access to Unleash',
path: '/admin/users',
},
[]: {
label: 'User access request approved',
action: '{{b}}{{user}}{{b}} approved access request for {{b}}{{event.data.email}}{{b}}',
path: '/admin/users',
},
[]: {
label: 'User access request rejected',
action: '{{b}}{{user}}{{b}} rejected access request for {{b}}{{event.data.email}}{{b}}',
path: '/admin/users',
},
};
//# sourceMappingURL=feature-event-formatter-md-events.js.map