@ttn-shared/ui 1.0.1 → 1.0.2

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.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;
@@ -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 AppointmentFilters, type AssistanceRisk, type Comment, type CommentFilters, type CommentPayload, PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, type PatientContractPayload, type PatientDetail, type PatientFilters, PatientForm, type PatientFormMode, type PatientFormValues, PatientNotes, type PatientPayload, type RiskFilters, type RiskPayload, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
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;
@@ -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 AppointmentFilters, type AssistanceRisk, type Comment, type CommentFilters, type CommentPayload, PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, type PatientContractPayload, type PatientDetail, type PatientFilters, PatientForm, type PatientFormMode, type PatientFormValues, PatientNotes, type PatientPayload, type RiskFilters, type RiskPayload, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttn-shared/ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [