@reblu/site-contracts 1.15.0 → 1.16.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @reblu/site-contracts
2
2
 
3
+ ## 1.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cc4e14e: REB-980: export `DataRequestInput`, `DataRequestSubmission` and `DataRequestType` — the body and 201 acknowledgement (`{ id, requestedAt, slaDueAt }`, the 72h deadline) of `POST /api/site/data-requests`, the public GDPR rights form endpoint. `captcha` (reCAPTCHA v3 token) is required; `name` and `details` are optional.
8
+
3
9
  ## 1.15.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -81,6 +81,12 @@ export type CustomFieldOption = { value: string; label: string;}
81
81
 
82
82
  export type CustomFieldValueType = "boolean" | "text" | "select" | "multiselect"
83
83
 
84
+ export type DataRequestInput = { requestType: "ACCESS" | "RECTIFICATION" | "ERASURE" | "OBJECTION" | "PORTABILITY" | "RESTRICTION" | "AUTOMATED_DECISION" | "INFORMATION"; email: string; captcha: string; name?: string | undefined; details?: string | undefined;}
85
+
86
+ export type DataRequestSubmission = { id: string; requestedAt: string; slaDueAt: string;}
87
+
88
+ export type DataRequestType = "ACCESS" | "RECTIFICATION" | "ERASURE" | "OBJECTION" | "PORTABILITY" | "RESTRICTION" | "AUTOMATED_DECISION" | "INFORMATION"
89
+
84
90
  export type EmbedReferenceData = { pageSlug: string; pageId?: string | undefined; categorySlug?: string | null | undefined;}
85
91
 
86
92
  export type LeadInput = { name: string; email?: string | undefined; phone?: string | undefined; businessName?: string | undefined; message?: string | undefined; source?: string | undefined; metadata?: Record<string, unknown> | undefined;}
package/dist/index.d.ts CHANGED
@@ -81,6 +81,12 @@ export type CustomFieldOption = { value: string; label: string;}
81
81
 
82
82
  export type CustomFieldValueType = "boolean" | "text" | "select" | "multiselect"
83
83
 
84
+ export type DataRequestInput = { requestType: "ACCESS" | "RECTIFICATION" | "ERASURE" | "OBJECTION" | "PORTABILITY" | "RESTRICTION" | "AUTOMATED_DECISION" | "INFORMATION"; email: string; captcha: string; name?: string | undefined; details?: string | undefined;}
85
+
86
+ export type DataRequestSubmission = { id: string; requestedAt: string; slaDueAt: string;}
87
+
88
+ export type DataRequestType = "ACCESS" | "RECTIFICATION" | "ERASURE" | "OBJECTION" | "PORTABILITY" | "RESTRICTION" | "AUTOMATED_DECISION" | "INFORMATION"
89
+
84
90
  export type EmbedReferenceData = { pageSlug: string; pageId?: string | undefined; categorySlug?: string | null | undefined;}
85
91
 
86
92
  export type LeadInput = { name: string; email?: string | undefined; phone?: string | undefined; businessName?: string | undefined; message?: string | undefined; source?: string | undefined; metadata?: Record<string, unknown> | undefined;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reblu/site-contracts",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "private": false,
5
5
  "description": "Public, dependency-free TypeScript types for the Reblu SITE API (types only — no Zod, no Prisma at runtime).",
6
6
  "license": "Apache-2.0",