@quicktalog/common 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,17 +61,10 @@ export type Analytics = {
61
61
  pageview_count: number;
62
62
  unique_visitors: number;
63
63
  };
64
- export type CookiePreferences = {
65
- accepted: boolean;
66
- essential: boolean;
67
- analytics: boolean;
68
- marketing: boolean;
69
- timestamp: string;
70
- version: string;
71
- };
72
64
  type RawUser = InferSelectModel<typeof schema.users>;
73
65
  export type User = Update<RawUser, {
74
66
  cookiePreferences: CookiePreferences;
67
+ consents: Consents;
75
68
  }>;
76
69
  export type OCRImageData = {
77
70
  id: string;
@@ -102,4 +95,17 @@ export type AreLimitesReached = {
102
95
  ocr: boolean;
103
96
  prompts: boolean;
104
97
  };
98
+ export type CookiePreferences = {
99
+ accepted: boolean;
100
+ essential: boolean;
101
+ analytics: boolean;
102
+ marketing: boolean;
103
+ timestamp: string;
104
+ version: string;
105
+ };
106
+ export type Consents = {
107
+ termsAndConditions: string;
108
+ privacyPolicy: string;
109
+ refundPolicy: string;
110
+ };
105
111
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktalog/common",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",