@ticketmaster/allure-mock
Advanced tools
Comparing version 6.0.9 to 6.0.10-alpha.0
@@ -7,8 +7,2 @@ /** | ||
/** | ||
* applications module | ||
*/ | ||
export { APPLICATIONS_LIST } from "@src/modules/applications/applications.constant"; | ||
export type { Application } from "@src/modules/applications/applications.definition"; | ||
export { applicationsMockApi } from "@src/modules/applications/applications.mock"; | ||
/** | ||
* identity module | ||
@@ -15,0 +9,0 @@ */ |
import { NextResponse } from 'next/server'; | ||
import * as jose from 'jose'; | ||
const APPLICATIONS_LIST = [ | ||
{ | ||
code: "identity", | ||
id: "cf1e79bb-f597-46ff-9211-59ba495db5f1", | ||
legacyId: "4.04", | ||
legacyCode: "404", | ||
productCode: "PRD68", | ||
targetUrl: "https://identity.dev1.tmtools.nonprod.public.tmaws.eu", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Identity", | ||
description: "Identity application", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "ecviewer", | ||
id: "8fbd4fd7-ca77-419e-b27f-c3fd2e444fd2", | ||
legacyId: "4.22", | ||
legacyCode: "422", | ||
productCode: "PRD2727", | ||
targetUrl: "https://ecviewer.dev1.tmtools.nonprod.public.tmaws.eu", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Entry Code Viewer", | ||
description: "Entry Code Viewer", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "mop-editor", | ||
id: "337deb9b-da7e-4cbb-a704-5c488256d1ad", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD68", | ||
targetUrl: "https://mop-editor.dev1.tmtools.nonprod.public.tmaws.eu", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Methods of payment", | ||
description: "Methods of payment", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app1", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 1", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
"fr-CH": { | ||
name: "App 1", | ||
description: "Explorez le monde à travers les yeux de quelqu'un d'autre", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app2", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 2", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
"fr-CH": { | ||
name: "App 2", | ||
description: "Explorez le monde à travers les yeux de quelqu'un d'autre", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app3", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 3", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app4", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 4", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app5", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 5", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "aws", | ||
id: "bf34bc2a-cd5e-418e-95b8-cc8fde86571f", | ||
legacyId: "5.03", | ||
legacyCode: "503", | ||
productCode: "PRD503", | ||
targetUrl: "https://onedrive.live.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "AWS", | ||
description: "File & photo cloud storage", | ||
}, | ||
"fr-CH": { | ||
name: "AWS", | ||
description: "Stockage de fichiers et de photos sur le nuage", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "onedrive", | ||
id: "bf34bc2a-cd5e-418e-95b8-cc8fde86571f", | ||
legacyId: "5.03", | ||
legacyCode: "503", | ||
productCode: "PRD503", | ||
targetUrl: "https://onedrive.live.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "OneDrive", | ||
description: "File & photo cloud storage", | ||
}, | ||
"fr-CH": { | ||
name: "OneDrive", | ||
description: "Stockage de fichiers et de photos sur le nuage", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "youtube", | ||
id: "cf1e79bb-f597-46ff-9211-59ba495db5f1", | ||
legacyId: "5.04", | ||
legacyCode: "504", | ||
productCode: "PRD504", | ||
targetUrl: "https://www.youtube.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "YouTube", | ||
description: "Broadcast Yourself", | ||
}, | ||
"fr-CH": { | ||
name: "YouTube", | ||
description: "Diffusez-vous", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "yelp", | ||
id: "c8618fc6-c6e6-4cff-b89a-e13258567352", | ||
legacyId: "5.05", | ||
legacyCode: "505", | ||
productCode: "PRD505", | ||
targetUrl: "https://www.yelp.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "yelp", | ||
description: "Real people, real reviews", | ||
}, | ||
"fr-CH": { | ||
name: "yelp", | ||
description: "De vraies personnes, de vraies critiques", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "facebook", | ||
id: "8ef97417-0836-40c6-a7c9-6768d1cb8384", | ||
legacyId: "5.06", | ||
legacyCode: "506", | ||
productCode: "PRD506", | ||
targetUrl: "https://www.facebook.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Facebook", | ||
description: "It's quick and easy", | ||
}, | ||
"fr-CH": { | ||
name: "Facebook", | ||
description: "C'est simple et rapide", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "dribbble", | ||
id: "b44bc54f-02ec-44a4-b1fa-b443ced87a37", | ||
legacyId: "5.07", | ||
legacyCode: "507", | ||
productCode: "PRD507", | ||
targetUrl: "https://www.dribbble.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "dribbble", | ||
description: "The heart of the designer community", | ||
}, | ||
"fr-CH": { | ||
name: "dribbble", | ||
description: "Le cœur de la communauté des créateurs", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "instagram", | ||
id: "5fe06e14-72da-43fb-87b5-310ca2b542f8", | ||
legacyId: "5.08", | ||
legacyCode: "508", | ||
productCode: "PRD508", | ||
targetUrl: "https://www.instagram.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Instagram", | ||
description: "Capture and share the world's moment", | ||
}, | ||
"fr-CH": { | ||
name: "Instagram", | ||
description: "Capturez et partagez le moment du monde", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "periscope", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Periscope", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
"fr-CH": { | ||
name: "Periscope", | ||
description: "Explorez le monde à travers les yeux de quelqu'un d'autre", | ||
}, | ||
}, | ||
}, | ||
]; | ||
const IDENTITY_LOGIN_URL = "https://login.dev1.tmtools.nonprod.public.tmaws.eu/login"; | ||
const SYSTEM_IDS = [100, 200]; | ||
@@ -303,14 +39,2 @@ /****************************************************************************** | ||
function applicationsMockApi() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new NextResponse(JSON.stringify(APPLICATIONS_LIST), { | ||
status: 200, | ||
headers: { "content-type": "application/json" }, | ||
}); | ||
}); | ||
} | ||
const IDENTITY_LOGIN_URL = "https://login.dev1.tmtools.nonprod.public.tmaws.eu/login"; | ||
const SYSTEM_IDS = [100, 200]; | ||
const generateJWT = (ott = "OTT_VALID") => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -469,2 +193,2 @@ const username = ott || "OTT_VALID"; | ||
export { APPLICATIONS_LIST, IDENTITY_LOGIN_URL, applicationsMockApi, generateJWT, identityMockApi }; | ||
export { IDENTITY_LOGIN_URL, generateJWT, identityMockApi }; |
@@ -25,268 +25,4 @@ 'use strict'; | ||
const APPLICATIONS_LIST = [ | ||
{ | ||
code: "identity", | ||
id: "cf1e79bb-f597-46ff-9211-59ba495db5f1", | ||
legacyId: "4.04", | ||
legacyCode: "404", | ||
productCode: "PRD68", | ||
targetUrl: "https://identity.dev1.tmtools.nonprod.public.tmaws.eu", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Identity", | ||
description: "Identity application", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "ecviewer", | ||
id: "8fbd4fd7-ca77-419e-b27f-c3fd2e444fd2", | ||
legacyId: "4.22", | ||
legacyCode: "422", | ||
productCode: "PRD2727", | ||
targetUrl: "https://ecviewer.dev1.tmtools.nonprod.public.tmaws.eu", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Entry Code Viewer", | ||
description: "Entry Code Viewer", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "mop-editor", | ||
id: "337deb9b-da7e-4cbb-a704-5c488256d1ad", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD68", | ||
targetUrl: "https://mop-editor.dev1.tmtools.nonprod.public.tmaws.eu", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Methods of payment", | ||
description: "Methods of payment", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app1", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 1", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
"fr-CH": { | ||
name: "App 1", | ||
description: "Explorez le monde à travers les yeux de quelqu'un d'autre", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app2", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 2", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
"fr-CH": { | ||
name: "App 2", | ||
description: "Explorez le monde à travers les yeux de quelqu'un d'autre", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app3", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 3", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app4", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 4", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "app5", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "App 5", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "aws", | ||
id: "bf34bc2a-cd5e-418e-95b8-cc8fde86571f", | ||
legacyId: "5.03", | ||
legacyCode: "503", | ||
productCode: "PRD503", | ||
targetUrl: "https://onedrive.live.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "AWS", | ||
description: "File & photo cloud storage", | ||
}, | ||
"fr-CH": { | ||
name: "AWS", | ||
description: "Stockage de fichiers et de photos sur le nuage", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "onedrive", | ||
id: "bf34bc2a-cd5e-418e-95b8-cc8fde86571f", | ||
legacyId: "5.03", | ||
legacyCode: "503", | ||
productCode: "PRD503", | ||
targetUrl: "https://onedrive.live.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "OneDrive", | ||
description: "File & photo cloud storage", | ||
}, | ||
"fr-CH": { | ||
name: "OneDrive", | ||
description: "Stockage de fichiers et de photos sur le nuage", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "youtube", | ||
id: "cf1e79bb-f597-46ff-9211-59ba495db5f1", | ||
legacyId: "5.04", | ||
legacyCode: "504", | ||
productCode: "PRD504", | ||
targetUrl: "https://www.youtube.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "YouTube", | ||
description: "Broadcast Yourself", | ||
}, | ||
"fr-CH": { | ||
name: "YouTube", | ||
description: "Diffusez-vous", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "yelp", | ||
id: "c8618fc6-c6e6-4cff-b89a-e13258567352", | ||
legacyId: "5.05", | ||
legacyCode: "505", | ||
productCode: "PRD505", | ||
targetUrl: "https://www.yelp.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "yelp", | ||
description: "Real people, real reviews", | ||
}, | ||
"fr-CH": { | ||
name: "yelp", | ||
description: "De vraies personnes, de vraies critiques", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "facebook", | ||
id: "8ef97417-0836-40c6-a7c9-6768d1cb8384", | ||
legacyId: "5.06", | ||
legacyCode: "506", | ||
productCode: "PRD506", | ||
targetUrl: "https://www.facebook.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Facebook", | ||
description: "It's quick and easy", | ||
}, | ||
"fr-CH": { | ||
name: "Facebook", | ||
description: "C'est simple et rapide", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "dribbble", | ||
id: "b44bc54f-02ec-44a4-b1fa-b443ced87a37", | ||
legacyId: "5.07", | ||
legacyCode: "507", | ||
productCode: "PRD507", | ||
targetUrl: "https://www.dribbble.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "dribbble", | ||
description: "The heart of the designer community", | ||
}, | ||
"fr-CH": { | ||
name: "dribbble", | ||
description: "Le cœur de la communauté des créateurs", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "instagram", | ||
id: "5fe06e14-72da-43fb-87b5-310ca2b542f8", | ||
legacyId: "5.08", | ||
legacyCode: "508", | ||
productCode: "PRD508", | ||
targetUrl: "https://www.instagram.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Instagram", | ||
description: "Capture and share the world's moment", | ||
}, | ||
"fr-CH": { | ||
name: "Instagram", | ||
description: "Capturez et partagez le moment du monde", | ||
}, | ||
}, | ||
}, | ||
{ | ||
code: "periscope", | ||
id: "f84aa6b0-77d5-4ba3-8f04-1e1f451b8fac", | ||
legacyId: "5.09", | ||
legacyCode: "509", | ||
productCode: "PRD509", | ||
targetUrl: "https://www.periscope.com/", | ||
localizedInfo: { | ||
"en-US": { | ||
name: "Periscope", | ||
description: "Explore the world through someone else's eyes", | ||
}, | ||
"fr-CH": { | ||
name: "Periscope", | ||
description: "Explorez le monde à travers les yeux de quelqu'un d'autre", | ||
}, | ||
}, | ||
}, | ||
]; | ||
const IDENTITY_LOGIN_URL = "https://login.dev1.tmtools.nonprod.public.tmaws.eu/login"; | ||
const SYSTEM_IDS = [100, 200]; | ||
@@ -325,14 +61,2 @@ /****************************************************************************** | ||
function applicationsMockApi() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new server.NextResponse(JSON.stringify(APPLICATIONS_LIST), { | ||
status: 200, | ||
headers: { "content-type": "application/json" }, | ||
}); | ||
}); | ||
} | ||
const IDENTITY_LOGIN_URL = "https://login.dev1.tmtools.nonprod.public.tmaws.eu/login"; | ||
const SYSTEM_IDS = [100, 200]; | ||
const generateJWT = (ott = "OTT_VALID") => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -491,6 +215,4 @@ const username = ott || "OTT_VALID"; | ||
exports.APPLICATIONS_LIST = APPLICATIONS_LIST; | ||
exports.IDENTITY_LOGIN_URL = IDENTITY_LOGIN_URL; | ||
exports.applicationsMockApi = applicationsMockApi; | ||
exports.generateJWT = generateJWT; | ||
exports.identityMockApi = identityMockApi; |
{ | ||
"name": "@ticketmaster/allure-mock", | ||
"version": "6.0.9", | ||
"version": "6.0.10-alpha.0", | ||
"description": "Allure common mocking solution library", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@ticketmaster/allure-command": "^6.0.9" | ||
"@ticketmaster/allure-command": "^6.0.10-alpha.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "publishConfig": { |
@@ -31,6 +31,3 @@ # @ticketmaster/allure-mock | ||
import { AVAILABLE_LOCALES, DEFAULT_LOCALE } from "./config"; | ||
import { | ||
applicationsMockApi, | ||
identityMockApi, | ||
} from "@ticketmaster/allure-mock"; | ||
import { identityMockApi } from "@ticketmaster/allure-mock"; | ||
@@ -59,3 +56,2 @@ export function middleware(request: NextRequest) { | ||
} = { | ||
"/applications": applicationsMockApi, | ||
"/sessions/logout": identityMockApi, | ||
@@ -62,0 +58,0 @@ "/systems": identityMockApi, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23763
11
491
2
76