/** * This enum represent all the type of user consents */ export declare enum ConsentTypes { TermsAndConditionsPolicy = "termsAndConditionsPolicy", PrivacyPolicy = "privacyPolicy", MarketingPolicy = "marketingPolicy" } /** * This type represent the model of consent information */ export type ConsentInformation = { /** * The consent accepted version */ signedVersion?: string; /** * The consent accepted date */ signedDate?: Date; /** * The consent latest version */ latestVersion: string; }; /** * This type represent the consents information */ export type ConsentsInformation = { /** * The terms and conditions consent information */ termsAndConditions: ConsentInformation; /** * The privacy policy consent information */ privacy: ConsentInformation; /** * The marketing policy consent information */ marketing: ConsentInformation; }; /** * This type represent the data needed to make an accept consents API request */ export type AcceptConsentsRequest = { /** * The terms and condition policy accepted version */ termsAndConditionsVersion: string; /** * The privacy policy accepted version */ privacyPolicyVersion: string; /** * The marketing policy accepted version */ marketingPolicyVersion?: string; }; /** * This type represent the response of an accept consents API request */ export type AcceptConsentsResponse = boolean; /** * This type represent the data needed to make an update consent API request */ export type UpdateConsentRequest = { /** * The consent type to update */ consentType: ConsentTypes; /** * The accepted policy version */ policyVersion: string; }; /** * This type represent the response of an update consent API request */ export type UpdateConsentResponse = boolean; /** * This type represent the response of a remove marketing consent API request */ export type RemoveMarketingConsentResponse = boolean;