@integraciones_doc24/sdk 1.16.7 → 1.16.8
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/lib/schemas.d.ts +28 -9
- package/lib/schemas.js +6 -3
- package/lib/userSdk/binah.d.ts +6 -3
- package/lib/userSdk/binah.js +1 -5
- package/package.json +1 -1
package/lib/schemas.d.ts
CHANGED
|
@@ -1841,20 +1841,39 @@ export declare const doc24Schemas: {
|
|
|
1841
1841
|
signature: string;
|
|
1842
1842
|
}>;
|
|
1843
1843
|
binahWellnessGetLinkParams: import("zod").ZodObject<{
|
|
1844
|
-
|
|
1844
|
+
socket: import("zod").ZodObject<{
|
|
1845
|
+
device: import("zod").ZodString;
|
|
1846
|
+
provider: import("zod").ZodString;
|
|
1847
|
+
socketUrl: import("zod").ZodString;
|
|
1848
|
+
socketAuthToken: import("zod").ZodString;
|
|
1849
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1850
|
+
device: string;
|
|
1851
|
+
provider: string;
|
|
1852
|
+
socketUrl: string;
|
|
1853
|
+
socketAuthToken: string;
|
|
1854
|
+
}, {
|
|
1855
|
+
device: string;
|
|
1856
|
+
provider: string;
|
|
1857
|
+
socketUrl: string;
|
|
1858
|
+
socketAuthToken: string;
|
|
1859
|
+
}>;
|
|
1845
1860
|
patientId: import("zod").ZodNumber;
|
|
1846
|
-
socketUrl: import("zod").ZodString;
|
|
1847
|
-
socketAuthToken: import("zod").ZodString;
|
|
1848
1861
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1849
1862
|
patientId: number;
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1863
|
+
socket: {
|
|
1864
|
+
device: string;
|
|
1865
|
+
provider: string;
|
|
1866
|
+
socketUrl: string;
|
|
1867
|
+
socketAuthToken: string;
|
|
1868
|
+
};
|
|
1853
1869
|
}, {
|
|
1854
1870
|
patientId: number;
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1871
|
+
socket: {
|
|
1872
|
+
device: string;
|
|
1873
|
+
provider: string;
|
|
1874
|
+
socketUrl: string;
|
|
1875
|
+
socketAuthToken: string;
|
|
1876
|
+
};
|
|
1858
1877
|
}>;
|
|
1859
1878
|
emailOrPhone: import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1860
1879
|
email: import("zod").ZodString;
|
package/lib/schemas.js
CHANGED
|
@@ -305,10 +305,13 @@ const externalAppointment = zod_1.object({
|
|
|
305
305
|
modality: zod_1.string(),
|
|
306
306
|
});
|
|
307
307
|
const binahWellnessGetLinkParams = zod_1.object({
|
|
308
|
-
|
|
308
|
+
socket: zod_1.object({
|
|
309
|
+
device: zod_1.string(),
|
|
310
|
+
provider: zod_1.string(),
|
|
311
|
+
socketUrl: zod_1.string(),
|
|
312
|
+
socketAuthToken: zod_1.string(),
|
|
313
|
+
}),
|
|
309
314
|
patientId: zod_1.number(),
|
|
310
|
-
socketUrl: zod_1.string(),
|
|
311
|
-
socketAuthToken: zod_1.string(),
|
|
312
315
|
});
|
|
313
316
|
const binahWellnessResponse = zod_1.object({
|
|
314
317
|
data: zod_1.object({
|
package/lib/userSdk/binah.d.ts
CHANGED
|
@@ -2,9 +2,12 @@ import { RequestMaker } from '../request';
|
|
|
2
2
|
export declare const getBinahWellnessMethods: (makeRequest: RequestMaker) => {
|
|
3
3
|
getBinahWellnessLink: (body: {
|
|
4
4
|
patientId: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
socket: {
|
|
6
|
+
device: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
socketUrl: string;
|
|
9
|
+
socketAuthToken: string;
|
|
10
|
+
};
|
|
8
11
|
}) => Promise<{
|
|
9
12
|
data: {
|
|
10
13
|
info: {
|
package/lib/userSdk/binah.js
CHANGED
|
@@ -9,11 +9,7 @@ const getBinahWellnessMethods = (makeRequest) => {
|
|
|
9
9
|
const path = `/wellness-test`;
|
|
10
10
|
const response = await makeRequest('POST', path, {
|
|
11
11
|
patient_id: body.patientId,
|
|
12
|
-
socket:
|
|
13
|
-
provider: body.provider,
|
|
14
|
-
socketUrl: body.socketUrl,
|
|
15
|
-
socketAuthToken: body.socketAuthToken,
|
|
16
|
-
},
|
|
12
|
+
socket: body.socket,
|
|
17
13
|
});
|
|
18
14
|
return response;
|
|
19
15
|
};
|