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.
@@ -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":[]}
@@ -1,5 +0,0 @@
1
- export default {
2
- STAGE_BASE_URL: 'https://star-health.getvisitapp.net/?mluib7c',
3
- PROD_BASE_URL: 'https://star-health.getvisitapp.com/?mluib7c'
4
- };
5
- //# sourceMappingURL=constants.js.map
@@ -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,3 +0,0 @@
1
- export const httpClient: any;
2
- export function getWebViewLink(baseUrl: any, token: any, cpsid: any, srcClientId: any, deviceId: any, appVersion: any, deviceVersion: any, userEnv: any): any;
3
- //# sourceMappingURL=Services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Services.d.ts","sourceRoot":"","sources":["../../src/Services.js"],"names":[],"mappings":"AAEA,6BAEG;AAEI,8JA8BN"}
@@ -1,6 +0,0 @@
1
- declare namespace _default {
2
- let STAGE_BASE_URL: string;
3
- let PROD_BASE_URL: string;
4
- }
5
- export default _default;
6
- //# sourceMappingURL=constants.d.ts.map
@@ -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
@@ -1,4 +0,0 @@
1
- export default {
2
- STAGE_BASE_URL: 'https://star-health.getvisitapp.net/?mluib7c',
3
- PROD_BASE_URL: 'https://star-health.getvisitapp.com/?mluib7c',
4
- };