// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import type {IssuerTokenCount, ListItem, Metadata} from 'chrome://privacy-sandbox-internals/private_state_tokens/private_state_tokens.js';
import {nullMetadataObj} from 'chrome://privacy-sandbox-internals/private_state_tokens/private_state_tokens.js';
export const dummyListItemData: ListItem[] = [
{
issuerOrigin: 'issuer1.com',
numTokens: 15,
redemptions: [
{origin: 'storeA.com', formattedTimestamp: '2024-06-18 14:30:00'},
{origin: 'storeC.com', formattedTimestamp: '2024-06-20 11:00:00'},
],
metadata: {
issuerOrigin: 'issuer1.com',
expiration: 'N/A (SaaS)',
purposes: [
'Website creation',
'Content editing',
'SEO optimization',
'Analytics reporting',
],
},
},
{
issuerOrigin: 'issuer2.com',
numTokens: 7,
redemptions:
[{origin: 'storeB.com', formattedTimestamp: '2024-06-19 17:15:00'}],
metadata: {
issuerOrigin: 'issuer2.com',
expiration: 'N/A (SaaS)',
purposes: [
'Website creation',
'Content editing',
'SEO optimization',
'Analytics reporting',
],
},
},
{
issuerOrigin: 'issuer3.com',
numTokens: 0,
redemptions: [], // No redemptions for this issuer
metadata: {
issuerOrigin: 'issuer3.com',
expiration: 'N/A (SaaS)',
purposes: [
'Website creation',
'Content editing',
'SEO optimization',
'Analytics reporting',
],
},
},
];
export const testListItemData: ListItem = {
issuerOrigin: 'issuer6.com',
numTokens: 1,
redemptions: [], // No redemptions for this issuer
metadata: nullMetadataObj,
};
export const dummyMetadata: Metadata = {
issuerOrigin: 'issuerTest.com',
expiration: 'today',
purposes: [
'Website creation',
'Content editing',
'SEO optimization',
'Analytics reporting',
],
};
export const dummyIssuerTokenCounts: IssuerTokenCount[] = [
{
issuer: 'issuer1.com',
count: 15,
},
{
issuer: 'issuer2.com',
count: 7,
},
{
issuer: 'issuer3.com',
count: 0,
},
];