ublo-lib 1.39.28 → 1.39.29
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/es/esf/components/espace-prive/admin/client-links.d.ts.map +1 -1
- package/es/esf/components/espace-prive/admin/client-links.js +3 -3
- package/es/esf/components/espace-prive/services/links.d.ts +1 -1
- package/es/esf/components/espace-prive/services/links.d.ts.map +1 -1
- package/es/esf/components/espace-prive/services/links.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-links.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/admin/client-links.js"],"names":[],"mappings":"AAYA,+
|
|
1
|
+
{"version":3,"file":"client-links.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/admin/client-links.js"],"names":[],"mappings":"AAYA,+EAmEC"}
|
|
@@ -13,14 +13,14 @@ import styles from "./client-links.module.css";
|
|
|
13
13
|
export default function ClientLinks() {
|
|
14
14
|
const { path, config, lang } = useUbloContext();
|
|
15
15
|
const { domains } = config;
|
|
16
|
-
const { apiURL, partnerID, cmsToken } = useContext();
|
|
16
|
+
const { apiURL, partnerID, site, cmsToken } = useContext();
|
|
17
17
|
const relativeURL = `https://${domains.fr}${path}`;
|
|
18
18
|
const snackbar = useSnackbar();
|
|
19
19
|
const [links, setLinks] = React.useState([]);
|
|
20
20
|
const getExistingLinks = React.useCallback(async () => {
|
|
21
|
-
const existingLinks = await Services.getLinks(apiURL, partnerID, cmsToken);
|
|
21
|
+
const existingLinks = await Services.getLinks(site, apiURL, partnerID, cmsToken);
|
|
22
22
|
setLinks(existingLinks);
|
|
23
|
-
}, [apiURL, partnerID, cmsToken]);
|
|
23
|
+
}, [site, apiURL, partnerID, cmsToken]);
|
|
24
24
|
React.useEffect(() => {
|
|
25
25
|
getExistingLinks();
|
|
26
26
|
}, [getExistingLinks]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function getLinks(apiURL: any, partnerID: any, cmsToken: any): Promise<any>;
|
|
1
|
+
export function getLinks(site: any, apiURL: any, partnerID: any, cmsToken: any): Promise<any>;
|
|
2
2
|
export function createLink(apiURL: any, email: any, partnerID: any, site: any, cmsToken: any): Promise<any>;
|
|
3
3
|
export function deleteLink(apiURL: any, id: any, cmsToken: any): Promise<any>;
|
|
4
4
|
export function setLinkUsed(apiURL: any, id: any): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/services/links.js"],"names":[],"mappings":"AAAO,
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/services/links.js"],"names":[],"mappings":"AAAO,8FASN;AAEM,4GAeN;AAEM,8EAaN;AAEM,gEAIN"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const getLinks = async (apiURL, partnerID, cmsToken) => {
|
|
2
|
-
const url = `${apiURL}/links?partnerID=${partnerID}`;
|
|
1
|
+
export const getLinks = async (site, apiURL, partnerID, cmsToken) => {
|
|
2
|
+
const url = `${apiURL}/links?site=${site}&partnerID=${partnerID}`;
|
|
3
3
|
const res = await fetch(url, {
|
|
4
4
|
headers: {
|
|
5
5
|
Authorization: cmsToken,
|