@ttn-shared/ui 1.0.1 → 1.0.3
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +13 -33
- package/dist/index.d.ts +13 -33
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2257,7 +2257,7 @@ var createPatientPayload = (values) => {
|
|
|
2257
2257
|
secondSurname: values.secondSurname ?? "",
|
|
2258
2258
|
birthDate: values.birthDate,
|
|
2259
2259
|
age: values.age,
|
|
2260
|
-
whatsapp: values.whatsapp,
|
|
2260
|
+
whatsapp: String(values.whatsapp),
|
|
2261
2261
|
gender: values.gender,
|
|
2262
2262
|
affiliationType: Number(values.affiliationTypeId),
|
|
2263
2263
|
email: values.email,
|
|
@@ -2267,7 +2267,7 @@ var createPatientPayload = (values) => {
|
|
|
2267
2267
|
homeAddress: values.homeAddress,
|
|
2268
2268
|
bloodType: values.bloodType,
|
|
2269
2269
|
cellphone: String(values.cellphone),
|
|
2270
|
-
homephone: values.homephone,
|
|
2270
|
+
homephone: String(values.homephone),
|
|
2271
2271
|
emergencyContact: values.emergencyContact,
|
|
2272
2272
|
neighborhood: values.neighborhood,
|
|
2273
2273
|
ocupation: values.occupation,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
|
-
interface SessionFilters {
|
|
5
|
-
eaccount?: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
interface SelectOption {
|
|
9
5
|
id: number;
|
|
10
6
|
name: string;
|
|
@@ -20,7 +16,7 @@ interface PatientFormValues {
|
|
|
20
16
|
secondSurname: string;
|
|
21
17
|
birthDate: string;
|
|
22
18
|
age: string;
|
|
23
|
-
whatsapp: string;
|
|
19
|
+
whatsapp: number | string;
|
|
24
20
|
gender: string;
|
|
25
21
|
affiliationTypeId: string;
|
|
26
22
|
email: string;
|
|
@@ -31,7 +27,7 @@ interface PatientFormValues {
|
|
|
31
27
|
bloodType: string;
|
|
32
28
|
neighborhood: string;
|
|
33
29
|
cellphone: number | string;
|
|
34
|
-
homephone: string;
|
|
30
|
+
homephone: number | string;
|
|
35
31
|
emergencyContact: string;
|
|
36
32
|
occupation: string;
|
|
37
33
|
use_glasses: string;
|
|
@@ -99,9 +95,6 @@ interface PatientContractPayload {
|
|
|
99
95
|
policy: string;
|
|
100
96
|
isMain: 0 | 1;
|
|
101
97
|
}
|
|
102
|
-
interface PatientFilters extends SessionFilters {
|
|
103
|
-
id?: number;
|
|
104
|
-
}
|
|
105
98
|
interface PatientDetail {
|
|
106
99
|
id: number;
|
|
107
100
|
docType: string;
|
|
@@ -208,10 +201,6 @@ interface Comment {
|
|
|
208
201
|
comment: string;
|
|
209
202
|
date: string;
|
|
210
203
|
}
|
|
211
|
-
interface CommentFilters {
|
|
212
|
-
id?: number;
|
|
213
|
-
entity?: "userClient";
|
|
214
|
-
}
|
|
215
204
|
interface CommentPayload {
|
|
216
205
|
entity: "userClient";
|
|
217
206
|
userId: number;
|
|
@@ -247,6 +236,16 @@ interface PatientAppointmentHistoryProps {
|
|
|
247
236
|
}
|
|
248
237
|
declare const PatientAppointmentHistory: ({ patientId }: PatientAppointmentHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
249
238
|
|
|
239
|
+
interface TTNSharedProviderProps {
|
|
240
|
+
token: string;
|
|
241
|
+
baseUrl: string;
|
|
242
|
+
userId?: number;
|
|
243
|
+
userName?: string;
|
|
244
|
+
userAccountId?: number;
|
|
245
|
+
}
|
|
246
|
+
declare const TTNSharedProvider: FC<PropsWithChildren<TTNSharedProviderProps>>;
|
|
247
|
+
declare const useTTNSharedContext: () => TTNSharedProviderProps;
|
|
248
|
+
|
|
250
249
|
interface AssistanceRisk {
|
|
251
250
|
clinicalDiseaseId: number;
|
|
252
251
|
clinicalDiseaseName: string;
|
|
@@ -256,9 +255,6 @@ interface AdministrativeRisk {
|
|
|
256
255
|
description: string;
|
|
257
256
|
classification: string;
|
|
258
257
|
}
|
|
259
|
-
interface RiskFilters {
|
|
260
|
-
status?: string;
|
|
261
|
-
}
|
|
262
258
|
interface RiskPayload {
|
|
263
259
|
eaccount: number;
|
|
264
260
|
idPatient: number;
|
|
@@ -345,21 +341,5 @@ interface Appointment {
|
|
|
345
341
|
timeEndApp: string;
|
|
346
342
|
usClientPrice: number;
|
|
347
343
|
}
|
|
348
|
-
interface AppointmentFilters {
|
|
349
|
-
idPatient?: number;
|
|
350
|
-
idAccount?: number;
|
|
351
|
-
page?: number;
|
|
352
|
-
perpage?: number;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
interface TTNSharedProviderProps {
|
|
356
|
-
token: string;
|
|
357
|
-
baseUrl: string;
|
|
358
|
-
userId?: number;
|
|
359
|
-
userName?: string;
|
|
360
|
-
userAccountId?: number;
|
|
361
|
-
}
|
|
362
|
-
declare const TTNSharedProvider: FC<PropsWithChildren<TTNSharedProviderProps>>;
|
|
363
|
-
declare const useTTNSharedContext: () => TTNSharedProviderProps;
|
|
364
344
|
|
|
365
|
-
export { type AdministrativeRisk, type Appointment, type
|
|
345
|
+
export { type AdministrativeRisk, type Appointment, type AssistanceRisk, type Comment, type CommentPayload, PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, type PatientDetail, PatientForm, type PatientFormMode, type PatientFormValues, PatientNotes, type PatientPayload, type RiskPayload, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
|
-
interface SessionFilters {
|
|
5
|
-
eaccount?: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
interface SelectOption {
|
|
9
5
|
id: number;
|
|
10
6
|
name: string;
|
|
@@ -20,7 +16,7 @@ interface PatientFormValues {
|
|
|
20
16
|
secondSurname: string;
|
|
21
17
|
birthDate: string;
|
|
22
18
|
age: string;
|
|
23
|
-
whatsapp: string;
|
|
19
|
+
whatsapp: number | string;
|
|
24
20
|
gender: string;
|
|
25
21
|
affiliationTypeId: string;
|
|
26
22
|
email: string;
|
|
@@ -31,7 +27,7 @@ interface PatientFormValues {
|
|
|
31
27
|
bloodType: string;
|
|
32
28
|
neighborhood: string;
|
|
33
29
|
cellphone: number | string;
|
|
34
|
-
homephone: string;
|
|
30
|
+
homephone: number | string;
|
|
35
31
|
emergencyContact: string;
|
|
36
32
|
occupation: string;
|
|
37
33
|
use_glasses: string;
|
|
@@ -99,9 +95,6 @@ interface PatientContractPayload {
|
|
|
99
95
|
policy: string;
|
|
100
96
|
isMain: 0 | 1;
|
|
101
97
|
}
|
|
102
|
-
interface PatientFilters extends SessionFilters {
|
|
103
|
-
id?: number;
|
|
104
|
-
}
|
|
105
98
|
interface PatientDetail {
|
|
106
99
|
id: number;
|
|
107
100
|
docType: string;
|
|
@@ -208,10 +201,6 @@ interface Comment {
|
|
|
208
201
|
comment: string;
|
|
209
202
|
date: string;
|
|
210
203
|
}
|
|
211
|
-
interface CommentFilters {
|
|
212
|
-
id?: number;
|
|
213
|
-
entity?: "userClient";
|
|
214
|
-
}
|
|
215
204
|
interface CommentPayload {
|
|
216
205
|
entity: "userClient";
|
|
217
206
|
userId: number;
|
|
@@ -247,6 +236,16 @@ interface PatientAppointmentHistoryProps {
|
|
|
247
236
|
}
|
|
248
237
|
declare const PatientAppointmentHistory: ({ patientId }: PatientAppointmentHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
249
238
|
|
|
239
|
+
interface TTNSharedProviderProps {
|
|
240
|
+
token: string;
|
|
241
|
+
baseUrl: string;
|
|
242
|
+
userId?: number;
|
|
243
|
+
userName?: string;
|
|
244
|
+
userAccountId?: number;
|
|
245
|
+
}
|
|
246
|
+
declare const TTNSharedProvider: FC<PropsWithChildren<TTNSharedProviderProps>>;
|
|
247
|
+
declare const useTTNSharedContext: () => TTNSharedProviderProps;
|
|
248
|
+
|
|
250
249
|
interface AssistanceRisk {
|
|
251
250
|
clinicalDiseaseId: number;
|
|
252
251
|
clinicalDiseaseName: string;
|
|
@@ -256,9 +255,6 @@ interface AdministrativeRisk {
|
|
|
256
255
|
description: string;
|
|
257
256
|
classification: string;
|
|
258
257
|
}
|
|
259
|
-
interface RiskFilters {
|
|
260
|
-
status?: string;
|
|
261
|
-
}
|
|
262
258
|
interface RiskPayload {
|
|
263
259
|
eaccount: number;
|
|
264
260
|
idPatient: number;
|
|
@@ -345,21 +341,5 @@ interface Appointment {
|
|
|
345
341
|
timeEndApp: string;
|
|
346
342
|
usClientPrice: number;
|
|
347
343
|
}
|
|
348
|
-
interface AppointmentFilters {
|
|
349
|
-
idPatient?: number;
|
|
350
|
-
idAccount?: number;
|
|
351
|
-
page?: number;
|
|
352
|
-
perpage?: number;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
interface TTNSharedProviderProps {
|
|
356
|
-
token: string;
|
|
357
|
-
baseUrl: string;
|
|
358
|
-
userId?: number;
|
|
359
|
-
userName?: string;
|
|
360
|
-
userAccountId?: number;
|
|
361
|
-
}
|
|
362
|
-
declare const TTNSharedProvider: FC<PropsWithChildren<TTNSharedProviderProps>>;
|
|
363
|
-
declare const useTTNSharedContext: () => TTNSharedProviderProps;
|
|
364
344
|
|
|
365
|
-
export { type AdministrativeRisk, type Appointment, type
|
|
345
|
+
export { type AdministrativeRisk, type Appointment, type AssistanceRisk, type Comment, type CommentPayload, PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, type PatientDetail, PatientForm, type PatientFormMode, type PatientFormValues, PatientNotes, type PatientPayload, type RiskPayload, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
|
package/dist/index.js
CHANGED
|
@@ -2279,7 +2279,7 @@ var createPatientPayload = (values) => {
|
|
|
2279
2279
|
secondSurname: values.secondSurname ?? "",
|
|
2280
2280
|
birthDate: values.birthDate,
|
|
2281
2281
|
age: values.age,
|
|
2282
|
-
whatsapp: values.whatsapp,
|
|
2282
|
+
whatsapp: String(values.whatsapp),
|
|
2283
2283
|
gender: values.gender,
|
|
2284
2284
|
affiliationType: Number(values.affiliationTypeId),
|
|
2285
2285
|
email: values.email,
|
|
@@ -2289,7 +2289,7 @@ var createPatientPayload = (values) => {
|
|
|
2289
2289
|
homeAddress: values.homeAddress,
|
|
2290
2290
|
bloodType: values.bloodType,
|
|
2291
2291
|
cellphone: String(values.cellphone),
|
|
2292
|
-
homephone: values.homephone,
|
|
2292
|
+
homephone: String(values.homephone),
|
|
2293
2293
|
emergencyContact: values.emergencyContact,
|
|
2294
2294
|
neighborhood: values.neighborhood,
|
|
2295
2295
|
ocupation: values.occupation,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttn-shared/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"react",
|
|
14
14
|
"shared"
|
|
15
15
|
],
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "A shared UI component library for TTN projects.",
|
|
17
17
|
"main": "./dist/index.cjs",
|
|
18
18
|
"module": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|