@integraciones_doc24/sdk 1.16.6 → 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 CHANGED
@@ -1840,6 +1840,41 @@ export declare const doc24Schemas: {
1840
1840
  };
1841
1841
  signature: string;
1842
1842
  }>;
1843
+ binahWellnessGetLinkParams: import("zod").ZodObject<{
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
+ }>;
1860
+ patientId: import("zod").ZodNumber;
1861
+ }, "strip", import("zod").ZodTypeAny, {
1862
+ patientId: number;
1863
+ socket: {
1864
+ device: string;
1865
+ provider: string;
1866
+ socketUrl: string;
1867
+ socketAuthToken: string;
1868
+ };
1869
+ }, {
1870
+ patientId: number;
1871
+ socket: {
1872
+ device: string;
1873
+ provider: string;
1874
+ socketUrl: string;
1875
+ socketAuthToken: string;
1876
+ };
1877
+ }>;
1843
1878
  emailOrPhone: import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodObject<{
1844
1879
  email: import("zod").ZodString;
1845
1880
  phone: import("zod").ZodString;
package/lib/schemas.js CHANGED
@@ -304,6 +304,15 @@ const externalAppointment = zod_1.object({
304
304
  specialty: zod_1.string(),
305
305
  modality: zod_1.string(),
306
306
  });
307
+ const binahWellnessGetLinkParams = zod_1.object({
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
+ }),
314
+ patientId: zod_1.number(),
315
+ });
307
316
  const binahWellnessResponse = zod_1.object({
308
317
  data: zod_1.object({
309
318
  info: zod_1.object({
@@ -449,6 +458,7 @@ exports.doc24Schemas = {
449
458
  externalPatient,
450
459
  externalAppointment,
451
460
  binahWellnessResponse,
461
+ binahWellnessGetLinkParams,
452
462
  emailOrPhone,
453
463
  emailOrPhoneCode,
454
464
  };
package/lib/types.d.ts CHANGED
@@ -46,6 +46,7 @@ export declare namespace Doc24 {
46
46
  type ExternalResetPasswordParams = TypeOf<typeof doc24Schemas.externalResetPasswordParams>;
47
47
  type ExternalPatient = TypeOf<typeof doc24Schemas.externalPatient>;
48
48
  type ExternalAppointment = TypeOf<typeof doc24Schemas.externalAppointment>;
49
+ type BinahWellnessGetLinkParams = TypeOf<typeof doc24Schemas.binahWellnessGetLinkParams>;
49
50
  type BinahWellnessResponse = TypeOf<typeof doc24Schemas.binahWellnessResponse>;
50
51
  type ProfessionalsBySpecialtyFilter = TypeOf<typeof doc24Schemas.professionalsBySpecialtyFilter>;
51
52
  type BaseSdk = {
@@ -96,7 +97,7 @@ export declare namespace Doc24 {
96
97
  cancelExternalAppointment: (appointmentId: ExternalAppointment) => Promise<void>;
97
98
  getPatientPHR: (patientId: number) => Promise<string>;
98
99
  userId: number;
99
- getBinahWellnessLink: (patientId: number) => Promise<BinahWellnessResponse>;
100
+ getBinahWellnessLink: (body: BinahWellnessGetLinkParams) => Promise<BinahWellnessResponse>;
100
101
  };
101
102
  namespace Webhook {
102
103
  type StatusChangeEventStatus = 'S' | 'C' | 'F' | 'A' | 'D' | 'L';
@@ -1,6 +1,14 @@
1
1
  import { RequestMaker } from '../request';
2
2
  export declare const getBinahWellnessMethods: (makeRequest: RequestMaker) => {
3
- getBinahWellnessLink: (patientId: number) => Promise<{
3
+ getBinahWellnessLink: (body: {
4
+ patientId: number;
5
+ socket: {
6
+ device: string;
7
+ provider: string;
8
+ socketUrl: string;
9
+ socketAuthToken: string;
10
+ };
11
+ }) => Promise<{
4
12
  data: {
5
13
  info: {
6
14
  link: string;
@@ -2,16 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getBinahWellnessMethods = void 0;
4
4
  const zod_1 = require("zod");
5
- const validation_1 = require("../request/validation");
6
5
  const schemas_1 = require("../schemas");
6
+ const validation_1 = require("../request/validation");
7
7
  const getBinahWellnessMethods = (makeRequest) => {
8
- const getBinahWellnessLink = async (patientId) => {
8
+ const getBinahWellnessLink = async (body) => {
9
9
  const path = `/wellness-test`;
10
- const response = await makeRequest('POST', path, { patient_id: patientId });
10
+ const response = await makeRequest('POST', path, {
11
+ patient_id: body.patientId,
12
+ socket: body.socket,
13
+ });
11
14
  return response;
12
15
  };
13
16
  return {
14
- getBinahWellnessLink: validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.binahWellnessResponse, getBinahWellnessLink),
17
+ getBinahWellnessLink: validation_1.validateFunction(zod_1.tuple([zod_1.any()]), schemas_1.doc24Schemas.binahWellnessResponse, getBinahWellnessLink),
15
18
  };
16
19
  };
17
20
  exports.getBinahWellnessMethods = getBinahWellnessMethods;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.16.6",
3
+ "version": "1.16.8",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },