@phygitallabs/tapquest-core 6.7.5 → 6.7.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phygitallabs/tapquest-core",
3
- "version": "6.7.5",
3
+ "version": "6.7.7",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/index.ts CHANGED
@@ -33,5 +33,7 @@ export * from "./modules/session-replay";
33
33
 
34
34
  export * from "./modules/action-logs";
35
35
 
36
+ export * from "./modules/consent";
37
+
36
38
  // Export types
37
39
  export * from "./types/common";
@@ -37,6 +37,16 @@ export const ServicesProvider: React.FC<ServicesProviderProps> = ({
37
37
  const { signOut, refreshToken } = useAuth();
38
38
  const { environment, version } = apiConfig;
39
39
  const [commonServiceConfig, setCommonServiceConfig] = useState<ServiceConfig | null>(null);
40
+
41
+ const [deviceUid, setDeviceUid] = useState<string>("");
42
+
43
+ useEffect(() => {
44
+ const initDeviceUid = async () => {
45
+ const deviceUid = await checkDeviceUid();
46
+ setDeviceUid(deviceUid);
47
+ }
48
+ initDeviceUid();
49
+ }, []);
40
50
 
41
51
  // Init client
42
52
  useEffect(() => {
@@ -132,11 +142,13 @@ export const ServicesProvider: React.FC<ServicesProviderProps> = ({
132
142
  baseURL={`${serviceApiUrl[environment].API_GENERATE_CERTIFICATE_URL}/v1`}
133
143
  >
134
144
  <PhygitalConsentProvider
145
+ deviceId={deviceUid}
135
146
  queryClient={commonServiceConfig.queryClient as any}
136
147
  axiosConfig={commonServiceConfig.axiosConfig}
137
148
  requestInterceptors={commonServiceConfig.requestInterceptors}
138
149
  responseInterceptors={commonServiceConfig.responseInterceptors}
139
- baseURL={`${serviceApiUrl[environment].API_CONSENT_URL}/${version}`}
150
+ baseURL={`${serviceApiUrl[environment].API_CONSENT_URL}/v1`}
151
+
140
152
  >
141
153
  {children}
142
154
  </PhygitalConsentProvider>