forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datacache.ts
36 lines (32 loc) · 1.3 KB
/
datacache.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (c) 2014-2024 Bjoern Kimminich & the OWASP Juice Shop contributors.
* SPDX-License-Identifier: MIT
*/
import type { BasketItemModel } from 'models/basketitem'
import type { 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<string, ChallengeModel> = {}
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
}