mirror of
https://github.com/KeygraphHQ/juice-shop.git
synced 2026-11-08 17:19:57 -10:00
37 lines
1.5 KiB
TypeScript
37 lines
1.5 KiB
TypeScript
/*
|
|
* Copyright (c) 2014-2025 Bjoern Kimminich & the OWASP Juice Shop contributors.
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
import type { BasketItemModel } from 'models/basketitem'
|
|
import type { ChallengeKey, ChallengeModel } from 'models/challenge'
|
|
import type { ComplaintModel } from 'models/complaint'
|
|
import type { FeedbackModel } from 'models/feedback'
|
|
import type { ProductModel } from 'models/product'
|
|
import type { BasketModel } from 'models/basket'
|
|
import type { UserModel } from 'models/user'
|
|
|
|
/* jslint node: true */
|
|
export const challenges: Record<ChallengeKey, ChallengeModel> = {} as unknown as Record<ChallengeKey, ChallengeModel> // this is a hack to have the challenge key non-nullable, but on init it is null.
|
|
export const users: Record<string, UserModel> = {}
|
|
export const products: Record<string, ProductModel> = {}
|
|
export const feedback: Record<string, FeedbackModel> = {}
|
|
export const baskets: Record<string, BasketModel> = {}
|
|
export const basketItems: Record<string, BasketItemModel> = {}
|
|
export const complaints: Record<string, ComplaintModel> = {}
|
|
|
|
export interface Notification {
|
|
key: string
|
|
name: string
|
|
challenge: string
|
|
flag: string
|
|
hidden: boolean
|
|
isRestore: boolean
|
|
}
|
|
export const notifications: Notification[] = []
|
|
|
|
export let retrieveBlueprintChallengeFile: string | null = null
|
|
export function setRetrieveBlueprintChallengeFile (retrieveBlueprintChallengeFileArg: string) {
|
|
retrieveBlueprintChallengeFile = retrieveBlueprintChallengeFileArg
|
|
}
|