Files
HiveGrid-Wireframes/hivegrid-cloud/apps/web/app/application/cookies/ApplicationCookies.ts
T

85 lines
2.6 KiB
TypeScript

import { ApplicationCookie } from "./ApplicationCookie";
import { CookieCategory } from "./CookieCategory";
// I used https://www.cookieserve.com/report
const allApplicationCookies: ApplicationCookie[] = [
{
category: CookieCategory.REQUIRED,
name: "RJ_session",
expiry: "1 month",
expiryKey: "cookies.expiry.oneMonth",
descriptionKey: "cookies.items.session.description",
},
{
category: CookieCategory.FUNCTIONAL,
name: "crisp-client/*",
expiry: "6 months",
expiryKey: "cookies.expiry.sixMonths",
descriptionKey: "cookies.items.crisp.description",
href: "https://help.crisp.chat/en/article/crisp-chatbox-cookie-ip-policy-1147xor/",
},
{
category: CookieCategory.ANALYTICS,
name: "app_analytics",
expiry: "1 month",
expiryKey: "cookies.expiry.oneMonth",
type: "https",
descriptionKey: "cookies.items.analytics.description",
},
{
category: CookieCategory.ANALYTICS,
name: "CONSENT",
domain: ".youtube.com",
expiry: "2 years",
expiryKey: "cookies.expiry.twoYears",
descriptionKey: "cookies.items.youtubeConsent.description",
href: "https://policies.google.com/technologies/cookies",
},
{
category: CookieCategory.ADVERTISEMENT,
name: "VISITOR_INFO1_LIVE",
domain: ".youtube.com",
expiry: "5 months 27 days",
expiryKey: "cookies.expiry.fiveMonths27Days",
descriptionKey: "cookies.items.youtubeVisitor.description",
href: "https://policies.google.com/technologies/cookies",
},
{
category: CookieCategory.ADVERTISEMENT,
name: "YSC",
domain: ".youtube.com",
expiry: "Session",
expiryKey: "cookies.expiry.session",
descriptionKey: "cookies.items.youtubeYsc.description",
href: "https://policies.google.com/technologies/cookies",
},
{
category: CookieCategory.ADVERTISEMENT,
name: "yt-remote-device-id",
domain: ".youtube.com",
expiry: "Never",
expiryKey: "cookies.expiry.never",
descriptionKey: "cookies.items.youtubeRemoteDevice.description",
href: "https://policies.google.com/technologies/cookies",
},
{
category: CookieCategory.ADVERTISEMENT,
name: "yt-remote-connected-devices",
domain: ".youtube.com",
expiry: "Never",
expiryKey: "cookies.expiry.never",
descriptionKey: "cookies.items.youtubeRemoteConnected.description",
href: "https://policies.google.com/technologies/cookies",
},
];
const allCookieCategories: CookieCategory[] = [];
allApplicationCookies.forEach((cookie) => {
if (!allCookieCategories.includes(cookie.category)) {
allCookieCategories.push(cookie.category);
}
});
export { allCookieCategories, allApplicationCookies };