react-native-visit-rn-sdk 7.0.0 → 7.1.1
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/README.md +44 -29
- package/lib/commonjs/index.android.js +32 -154
- package/lib/commonjs/index.android.js.map +1 -1
- package/lib/commonjs/index.ios.js +8 -117
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/module/index.android.js +31 -153
- package/lib/module/index.android.js.map +1 -1
- package/lib/module/index.ios.js +9 -117
- package/lib/module/index.ios.js.map +1 -1
- package/lib/typescript/index.android.d.ts +4 -22
- package/lib/typescript/index.android.d.ts.map +1 -1
- package/lib/typescript/index.ios.d.ts +4 -18
- package/lib/typescript/index.ios.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/index.android.js +41 -235
- package/src/index.ios.js +6 -151
- package/lib/commonjs/Services.js +0 -35
- package/lib/commonjs/Services.js.map +0 -1
- package/lib/commonjs/constants.js +0 -11
- package/lib/commonjs/constants.js.map +0 -1
- package/lib/module/Services.js +0 -27
- package/lib/module/Services.js.map +0 -1
- package/lib/module/constants.js +0 -5
- package/lib/module/constants.js.map +0 -1
- package/lib/typescript/Services.d.ts +0 -3
- package/lib/typescript/Services.d.ts.map +0 -1
- package/lib/typescript/constants.d.ts +0 -6
- package/lib/typescript/constants.d.ts.map +0 -1
- package/src/Services.js +0 -37
- package/src/constants.js +0 -4
package/lib/module/Services.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
export const httpClient = axios.create({
|
|
3
|
-
timeout: 60000
|
|
4
|
-
});
|
|
5
|
-
export const getWebViewLink = (baseUrl, token, cpsid, srcClientId, deviceId, appVersion, deviceVersion, userEnv) => {
|
|
6
|
-
const data = {
|
|
7
|
-
cpsid,
|
|
8
|
-
token,
|
|
9
|
-
srcClientId,
|
|
10
|
-
deviceId,
|
|
11
|
-
appVersion,
|
|
12
|
-
deviceVersion,
|
|
13
|
-
userEnv
|
|
14
|
-
};
|
|
15
|
-
return httpClient.post(`${baseUrl}/partners/v3/generate-magic-link-star-health`, data).then(res => {
|
|
16
|
-
console.log('getWebViewLink res', {
|
|
17
|
-
res
|
|
18
|
-
});
|
|
19
|
-
return res;
|
|
20
|
-
}).catch(err => {
|
|
21
|
-
console.log('getWebViewLink err', {
|
|
22
|
-
err
|
|
23
|
-
});
|
|
24
|
-
return err;
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=Services.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["axios","httpClient","create","timeout","getWebViewLink","baseUrl","token","cpsid","srcClientId","deviceId","appVersion","deviceVersion","userEnv","data","post","then","res","console","log","catch","err"],"sourceRoot":"../../src","sources":["Services.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,UAAU,GAAGD,KAAK,CAACE,MAAM,CAAC;EACrCC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,MAAMC,cAAc,GAAGA,CAC5BC,OAAO,EACPC,KAAK,EACLC,KAAK,EACLC,WAAW,EACXC,QAAQ,EACRC,UAAU,EACVC,aAAa,EACbC,OAAO,KACJ;EACH,MAAMC,IAAI,GAAG;IACXN,KAAK;IACLD,KAAK;IACLE,WAAW;IACXC,QAAQ;IACRC,UAAU;IACVC,aAAa;IACbC;EACF,CAAC;EAED,OAAOX,UAAU,CACda,IAAI,CAAC,GAAGT,OAAO,8CAA8C,EAAEQ,IAAI,CAAC,CACpEE,IAAI,CAAEC,GAAG,IAAK;IACbC,OAAO,CAACC,GAAG,CAAC,oBAAoB,EAAE;MAAEF;IAAI,CAAC,CAAC;IAC1C,OAAOA,GAAG;EACZ,CAAC,CAAC,CACDG,KAAK,CAAEC,GAAG,IAAK;IACdH,OAAO,CAACC,GAAG,CAAC,oBAAoB,EAAE;MAAEE;IAAI,CAAC,CAAC;IAC1C,OAAOA,GAAG;EACZ,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
package/lib/module/constants.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["STAGE_BASE_URL","PROD_BASE_URL"],"sourceRoot":"../../src","sources":["constants.js"],"mappings":"AAAA,eAAe;EACbA,cAAc,EAAE,8CAA8C;EAC9DC,aAAa,EAAE;AACjB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Services.d.ts","sourceRoot":"","sources":["../../src/Services.js"],"names":[],"mappings":"AAEA,6BAEG;AAEI,8JA8BN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.js"],"names":[],"mappings":""}
|
package/src/Services.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
|
|
3
|
-
export const httpClient = axios.create({
|
|
4
|
-
timeout: 60000,
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
export const getWebViewLink = (
|
|
8
|
-
baseUrl,
|
|
9
|
-
token,
|
|
10
|
-
cpsid,
|
|
11
|
-
srcClientId,
|
|
12
|
-
deviceId,
|
|
13
|
-
appVersion,
|
|
14
|
-
deviceVersion,
|
|
15
|
-
userEnv
|
|
16
|
-
) => {
|
|
17
|
-
const data = {
|
|
18
|
-
cpsid,
|
|
19
|
-
token,
|
|
20
|
-
srcClientId,
|
|
21
|
-
deviceId,
|
|
22
|
-
appVersion,
|
|
23
|
-
deviceVersion,
|
|
24
|
-
userEnv,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return httpClient
|
|
28
|
-
.post(`${baseUrl}/partners/v3/generate-magic-link-star-health`, data)
|
|
29
|
-
.then((res) => {
|
|
30
|
-
console.log('getWebViewLink res', { res });
|
|
31
|
-
return res;
|
|
32
|
-
})
|
|
33
|
-
.catch((err) => {
|
|
34
|
-
console.log('getWebViewLink err', { err });
|
|
35
|
-
return err;
|
|
36
|
-
});
|
|
37
|
-
};
|
package/src/constants.js
DELETED