UNPKG

@valantic/spartacus-mock

Version:

This project offers you the possibility to mock the OCC Endpoints of your Composable Storefront (Spartacus). It uses the Mock Service Worker to mock the API calls.

44 lines (43 loc) 1.5 kB
import { Occ } from '@spartacus/core'; export declare const anonymousConsents: { templateCode: string; templateVersion: number; consentState: string; }[]; export declare const consentTemplatesOptions: () => { status: number; headers: { Date: string; 'Content-Length': string; Connection: string; 'X-Frame-Options': string; Vary: string; 'Access-Control-Allow-Origin': string; 'Access-Control-Allow-Methods': string; 'Access-Control-Allow-Headers': string; 'Access-Control-Expose-Headers': string; }; }; export declare const consentTemplatesHead: () => { status: number; headers: { 'Content-Type': string; Connection: string; 'X-OneAgent-JS-Injection': string; 'Timing-Allow-Origin': string; 'Server-Timing': string; 'X-Frame-Options': string; Vary: string; 'Access-Control-Allow-Origin': string; 'Access-Control-Expose-Headers': string; 'X-Anonymous-Consents': string; 'Cache-Control': string; Pragma: string; Expires: string; 'Strict-Transport-Security': string; 'X-XSS-Protection': string; 'X-Content-Type-Options': string; }; }; export declare const createConsentTemplate: (userId: string, consentId: string, additionalData?: Occ.ConsentTemplate) => Occ.ConsentTemplate; export declare const consentTemplateList: (userId: string) => Occ.ConsentTemplateList;