@redacto.io/consent-sdk-react 1.1.0 → 1.3.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.
@@ -75,10 +75,8 @@ export const submitConsentEvent = async ({
75
75
  }: SubmitConsentEventParams): Promise<void> => {
76
76
  try {
77
77
  const primaryEmail = localStorage.getItem("userEmail");
78
- const primaryMobile = localStorage.getItem("userMobile");
79
78
  const payload: ConsentEventPayload = {
80
79
  primary_email: primaryEmail || undefined,
81
- primary_mobile: primaryMobile || undefined,
82
80
  notice_uuid: noticeUuid,
83
81
  source: "WEB",
84
82
  declined,
@@ -104,7 +102,7 @@ export const submitConsentEvent = async ({
104
102
  const apiBaseUrl = baseUrl || BASE_URL;
105
103
 
106
104
  const response = await fetch(
107
- `${apiBaseUrl}/public/organisations/${org_uuid}/workspaces/${workspace_uuid}/by-token`,
105
+ `${apiBaseUrl}/public/organisations/${org_uuid}/workspaces/${workspace_uuid}/submit-consent`,
108
106
  {
109
107
  method: "POST",
110
108
  headers: {
@@ -1,21 +0,0 @@
1
-
2
- 
3
- > @redacto.io/consent-sdk-react@0.0.3 build /Users/abhishekashyap/Documents/redacto/consent-sdk/packages/consent-sdk-react
4
- > tsup
5
-
6
- CLI Building entry: {"index":"src/index.ts"}
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.4.0
9
- CLI Using tsup config: /Users/abhishekashyap/Documents/redacto/consent-sdk/packages/consent-sdk-react/tsup.config.ts
10
- CLI Target: es2019
11
- CLI Cleaning output folder
12
- ESM Build start
13
- CJS Build start
14
- CJS dist/index.js 103.01 KB
15
- CJS ⚡️ Build success in 14ms
16
- ESM dist/index.mjs 99.59 KB
17
- ESM ⚡️ Build success in 14ms
18
- DTS Build start
19
- DTS ⚡️ Build success in 645ms
20
- DTS dist/index.d.mts 2.40 KB
21
- DTS dist/index.d.ts 2.40 KB