@phygitallabs/tapquest-core 6.7.3 → 6.7.5
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/bun.lock +252 -133
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +196 -4
- package/dist/index.d.ts +196 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/constants/service.ts +3 -0
- package/src/modules/achievement-tracking/types/index.ts +1 -1
- package/src/modules/consent/index.ts +1 -0
- package/src/providers/ServicesProvider.tsx +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phygitallabs/tapquest-core",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@phygitallabs/generate-certificate": "latest",
|
|
31
31
|
"@phygitallabs/helpers": "latest",
|
|
32
32
|
"@phygitallabs/notification-api": "latest",
|
|
33
|
+
"@phygitallabs/phygital-consent": "latest",
|
|
33
34
|
"@phygitallabs/reward": "latest",
|
|
34
35
|
"@reduxjs/toolkit": "^1.9.5",
|
|
35
36
|
"@tanstack/react-query": "^5.66.8",
|
package/src/constants/service.ts
CHANGED
|
@@ -5,6 +5,7 @@ const serviceApiUrl = {
|
|
|
5
5
|
API_ACHIEVEMENT_URL: "https://backend-dev.nomion.io/achievement",
|
|
6
6
|
API_REWARD_URL: "https://backend-dev.nomion.io/reward",
|
|
7
7
|
API_GENERATE_CERTIFICATE_URL: "https://media-prc-dev.nomion.io/api",
|
|
8
|
+
API_CONSENT_URL: "https://backend-dev.nomion.io/consent",
|
|
8
9
|
API_NOTIFICATION_SOCKET_URL: "https://backend-dev.nomion.io/notification-ws/ws",
|
|
9
10
|
},
|
|
10
11
|
staging: {
|
|
@@ -13,6 +14,7 @@ const serviceApiUrl = {
|
|
|
13
14
|
API_ACHIEVEMENT_URL: "https://backend-staging.nomion.io/achievement",
|
|
14
15
|
API_REWARD_URL: "https://backend-staging.nomion.io/reward",
|
|
15
16
|
API_GENERATE_CERTIFICATE_URL: "https://media-prc-staging.nomion.io/api",
|
|
17
|
+
API_CONSENT_URL: "https://backend-staging.nomion.io/consent",
|
|
16
18
|
API_NOTIFICATION_SOCKET_URL: "https://backend-staging.nomion.io/notification-ws/ws",
|
|
17
19
|
|
|
18
20
|
},
|
|
@@ -22,6 +24,7 @@ const serviceApiUrl = {
|
|
|
22
24
|
API_ACHIEVEMENT_URL: "https://backend.nomion.io/achievement",
|
|
23
25
|
API_REWARD_URL: "https://backend.nomion.io/reward",
|
|
24
26
|
API_GENERATE_CERTIFICATE_URL: "https://media-prc.nomion.io/api",
|
|
27
|
+
API_CONSENT_URL: "https://backend.nomion.io/consent",
|
|
25
28
|
API_NOTIFICATION_SOCKET_URL: "https://backend.nomion.io/notification-ws/ws",
|
|
26
29
|
|
|
27
30
|
},
|
|
@@ -7,7 +7,7 @@ export type TrackingEventName =
|
|
|
7
7
|
| "challenge_complete"
|
|
8
8
|
| "quest_complete";
|
|
9
9
|
|
|
10
|
-
export type AchievementActionType = "tap_chip" | "create_memory" | "take_survey";
|
|
10
|
+
export type AchievementActionType = "tap_chip" | "create_memory" | "take_survey" | "click_button";
|
|
11
11
|
|
|
12
12
|
export interface AchievementTrackingContextValue {
|
|
13
13
|
trackChallengeStart: (actionType: AchievementActionType) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PhygitalConsentProvider, usePhygitalConsent, CookieConsentBanner } from "@phygitallabs/phygital-consent";
|
|
@@ -4,6 +4,7 @@ import { PGLCoreServiceProvider } from "@phygitallabs/api-core";
|
|
|
4
4
|
import { RewardServiceProvider } from "@phygitallabs/reward";
|
|
5
5
|
import { AchievementServiceProvider } from "@phygitallabs/achievement";
|
|
6
6
|
import { GenerateCertificateServiceProvider } from "@phygitallabs/generate-certificate";
|
|
7
|
+
import { PhygitalConsentProvider } from "@phygitallabs/phygital-consent";
|
|
7
8
|
|
|
8
9
|
import serviceApiUrl from "../constants/service";
|
|
9
10
|
import { APIConfig, ServiceConfig } from "../types/service";
|
|
@@ -130,7 +131,15 @@ export const ServicesProvider: React.FC<ServicesProviderProps> = ({
|
|
|
130
131
|
{...commonServiceConfig}
|
|
131
132
|
baseURL={`${serviceApiUrl[environment].API_GENERATE_CERTIFICATE_URL}/v1`}
|
|
132
133
|
>
|
|
133
|
-
|
|
134
|
+
<PhygitalConsentProvider
|
|
135
|
+
queryClient={commonServiceConfig.queryClient as any}
|
|
136
|
+
axiosConfig={commonServiceConfig.axiosConfig}
|
|
137
|
+
requestInterceptors={commonServiceConfig.requestInterceptors}
|
|
138
|
+
responseInterceptors={commonServiceConfig.responseInterceptors}
|
|
139
|
+
baseURL={`${serviceApiUrl[environment].API_CONSENT_URL}/${version}`}
|
|
140
|
+
>
|
|
141
|
+
{children}
|
|
142
|
+
</PhygitalConsentProvider>
|
|
134
143
|
</GenerateCertificateServiceProvider>
|
|
135
144
|
</AchievementServiceProvider>
|
|
136
145
|
</RewardServiceProvider>
|